.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   HPB_bot (http://forums.bots-united.com/forumdisplay.php?f=35)
-   -   hpbbot template 3 question (http://forums.bots-united.com/showthread.php?t=4151)

grandmasterc 26-06-2005 10:40

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

Pierre-Marie Baty 26-06-2005 13:45

Re: hpbbot template 3 question
 
How so, you can't get the template 4 to work ?

grandmasterc 26-06-2005 13:57

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?

Pierre-Marie Baty 26-06-2005 16:23

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.

grandmasterc 26-06-2005 19:49

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)

Pierre-Marie Baty 26-06-2005 20:10

Re: hpbbot template 3 question
 
Are you trying this in HLDM or in your friend's mod ?

grandmasterc 26-06-2005 20:32

Re: hpbbot template 3 question
 
in my friends mod

Pierre-Marie Baty 27-06-2005 13:42

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.

grandmasterc 27-06-2005 19:04

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

Rifleman 28-06-2005 11:22

Re: hpbbot template 3 question
 
Compare both templatev3 and templatev4 , as simple as that ...


All times are GMT +2. The time now is 12:03.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.