#how to automatically make bots spawn when map is loaded?

1 messages · Page 1 of 1 (latest)

weak mason
#

i just wanna make a puppet bot or a bot that doesnt attack spawn when the map is loaded, think of tr_walkway or games like that. there is nothing that i can find that shows this, ive asked in like 3 places and nada, please help. ive also tried something like this if that helps at all

#

ive been working on this for 10 hours please help lol

reef crown
#

tr_walkway works only if you have "sv_allow_point_servercommand always" set in console

weak mason
#

ive done that

reef crown
#

mm

weak mason
#

do i have to set it in the map its self or something?

reef crown
#

no should just be on your own pc

weak mason
#

hammer please i just wanna spawn a bot

pearl peak
#

it's likely the quotation marks breaking it

weak mason
#

ill try it right now

reef crown
#

dont use real quote marks, it can corrupt your map

#

use double apostrophe

pearl peak
#

yeah I'm surprised it didn't corrupt your VMF

reef crown
#

you can also decompile tr_walkway and see how that map did it

weak mason
#

im using quotes in it because when making the bots with console commands in game i think you have to use em

weak mason
pearl peak
#

which you don't here

weak mason
#

true

#

lets see im tryin it now

reef crown
#

literally never use real quotes in hammer

#

just use double apostrophe

pearl peak
#

yeah in anything
it's because keyvalues use quotation marks and Hammer doesn't sanitize its strings

#

outputs are technically keyvalues

weak mason
#

nada, didnt work

pearl peak
#

they're also delayed logic_auto outputs

#

sometimes they don't fire

#

you can work around it by having the delayed inputs on a logic_relay instead

weak mason
#

this software is gonna make me have a stroke

pearl peak
#

oh and you're using OnLoadGame

#

that's supposed to be for loading a singleplayer save

#

that might not fire correctly in a multiplayer game

weak mason
#

then should i use onmapspawn?

#

or what lol

pearl peak
#

yes

weak mason
#

alright

#

trying once more

pearl peak
#

try that first then the delayed logic_auto output workaround

#

because it could be one or the other, or both

weak mason
#

hell i can just make it not delayed

pearl peak
#

that'll do

weak mason
#

didnt work

#

ive looked in every area for the answer to this and i cant find anything why is it so hard to spawn a no brain bot

#

it may be possible that i am just dumb though

pearl peak
#

research what tr_walkway does then

#

there's probably some specific, obscure way of doing it to make it work

weak mason
#

im just gonna have to decompile it lol cause ive tried to research it

pearl peak
#

that's what I meant