Raised This Month: $51 Target: $400
 12% 

Spawning attacking npcs with a menu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hubbajubba
Member
Join Date: Aug 2009
Old 09-09-2009 , 20:24   Spawning attacking npcs with a menu
Reply With Quote #1

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:

Code:
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?
hubbajubba is offline
Evian
Junior Member
Join Date: Jun 2009
Old 09-10-2009 , 20:33   Re: Spawning attacking npcs with a menu
Reply With Quote #2

Quote:
Originally Posted by hubbajubba View Post
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:

Code:
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

Code:
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"
Evian is offline
hubbajubba
Member
Join Date: Aug 2009
Old 09-16-2009 , 21:58   Re: Spawning attacking npcs with a menu
Reply With Quote #3

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
hubbajubba is offline
atattre
New Member
Join Date: Sep 2009
Old 09-17-2009 , 05:40   Re: Spawning attacking npcs with a menu
Reply With Quote #4

Je veux avoir plus infiormation
__________________
atattre is offline
hubbajubba
Member
Join Date: Aug 2009
Old 09-25-2009 , 17:47   Re: Spawning attacking npcs with a menu
Reply With Quote #5

Quote:
Originally Posted by atattre View Post
Je veux avoir plus infiormation
english?
hubbajubba is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:23.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode