PDA

View Full Version : Spawning attacking npcs with a menu


hubbajubba
09-09-2009, 20:24
I want to make it so that if your admin you get an option in the menu were you can spawn attacking npc's. First i took and made a cfg with this in it:

sk_headcrab_health 50
sk_headcrab_melee_dmg 25
npc_create npc_headcrab
ent_fire npc_headcrab setrelationship "player d_ht 99"

saved it as C:\SRCDS\hl2mp\cfg\configs\headcrab.cfg

then i went into C:\SRCDS\hl2mp\addons\sourcemod\configs then edited the
adminmenu_cfgs.txt to start the headcrab.cfg

"cfg\configs\headcrab.cfg" "Spawn Headcrab"

but you need to have sv_cheats on to make them spawn. Is there something i can add to the .cfg to make it so they spawn when cheats are off, but also limit it to admins only?

Evian
09-10-2009, 20:33
I want to make it so that if your admin you get an option in the menu were you can spawn attacking npc's. First i took and made a cfg with this in it:

sk_headcrab_health 50
sk_headcrab_melee_dmg 25
npc_create npc_headcrab
ent_fire npc_headcrab setrelationship "player d_ht 99" saved it as C:\SRCDS\hl2mp\cfg\configs\headcrab.cfg

then i went into C:\SRCDS\hl2mp\addons\sourcemod\configs then edited the
adminmenu_cfgs.txt to start the headcrab.cfg

"cfg\configs\headcrab.cfg" "Spawn Headcrab"

but you need to have sv_cheats on to make them spawn. Is there something i can add to the .cfg to make it so they spawn when cheats are off, but also limit it to admins only?


I'm not sure but you can try


sm_cvar sk_headcrab_health 50
sm_cvar sk_headcrab_melee_dmg 25
sm_cvar npc_create npc_headcrab
sm_cvar ent_fire npc_headcrab setrelationship "player d_ht 99"

hubbajubba
09-16-2009, 21:58
uhh it worked to chnage the settings of the npc, but didnt actually spawn it, i need to find a way to enable cheats but just for this, i could try the mod that enables cheats for admin but not the public

atattre
09-17-2009, 05:40
Je veux avoir plus infiormation

hubbajubba
09-25-2009, 17:47
Je veux avoir plus infiormation
english?