![]() |
hpbbot template 3 question
hoi
i´m pretty new to bot coding and recently started to make bots for a friends mod. i already managed to make it spawn in freefight and in teamfight problem 1: it only spawns team 1 problem 2: it only works with won hl the most important thing is what i hav to do that it also works with steam? i tried template 4 but i cant get it to run. any help is appriciated greetz grandmasterc |
Re: hpbbot template 3 question
How so, you can't get the template 4 to work ?
|
Re: hpbbot template 3 question
it only spawns a green sprite
i use the same code for template 4 as for 3 how can i get it work with steam? |
Re: hpbbot template 3 question
The unmodified template 4 should work in HL, Steam or not, I tested it myself. The bot spawning code hasn't changed at all between version 3 and 4.
If you really can't make it work, you should consider using metamod, and make your bot a metamod plugin. Get the HL bot developer kit from the filebase, it compiles a metamod bot for HL out of the box. If the "official" metamod DLL doesn't support your friend's mod, you can use the unofficial metamod-P one that works with all mods. |
Re: hpbbot template 3 question
well
i tried it again the EXACT same code works for template 3 but for template 4 it doesn´t work in template 3 the bots spawn in freefighting in template 4 they only stay as spectators or dont appear. i´ve done everything which is mentioned in the readme.txt but it doesn´t work with template 4 what do i need to do to make template 3 work with steam or is there someone who can make me basic bots(that they spawn in team and freefight) |
Re: hpbbot template 3 question
Are you trying this in HLDM or in your friend's mod ?
|
Re: hpbbot template 3 question
in my friends mod
|
Re: hpbbot template 3 question
try it in HLDM first. The HPB_bot was meant to work for that mod.
If you want to port it to another mod you have to a) add the missing entities in linkfunc.cpp using the LINK_ENTITY_TO_CLASS() macro b) change the way the bot detects a player's team, if appropriate c) make the relevant changes to the bot code so that the bot can browse the in-game menus, if there are some. |
Re: hpbbot template 3 question
omg you dont get what i mean.
how can it be that the EXACT code works for template 3 but doesn´t for template 4? i just want to know what to do that template 3 works with steam too |
Re: hpbbot template 3 question
Compare both templatev3 and templatev4 , as simple as that ...
|
All times are GMT +2. The time now is 23:31. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.