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

Spawn Health + Timer


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
discombobulated
Junior Member
Join Date: Oct 2005
Old 04-15-2006 , 08:28   Spawn Health + Timer
Reply With Quote #1

Hi all, I run a server that's mainly on surf_japan_v2, and we have a little problem with spawn killers.

I was wondering how hard it would be to make a small MM:S plugin that would spawn players with 500 health, and then change it to 100 after 10 seconds. As this is incorporated into CSSM it wouldn't take too much effort would it?

Thanks
discombobulated is offline
ichthys
Veteran Member
Join Date: Dec 2004
Location: []*[]
Old 04-15-2006 , 10:51  
Reply With Quote #2

you could use eventscripts + mani
  • player_spawn.cfg
Code:
es ma_sethealth event_var(userid) 10000
es_delayed ma_sethealth event_var(userid) 100
__________________
ichthys is offline
discombobulated
Junior Member
Join Date: Oct 2005
Old 04-16-2006 , 08:35  
Reply With Quote #3

Two problems with that :

- I've never used eventscripts and don't really know anything about it
- I don't really want to install eventscripts on our server, as it is laggy enough at the moment.
discombobulated is offline
ichthys
Veteran Member
Join Date: Dec 2004
Location: []*[]
Old 04-16-2006 , 10:40  
Reply With Quote #4

one little script like that won't cause any lag.

http://eventscripts.com
http://www.mattie.info/cs/forums/index.php
__________________
ichthys is offline
discombobulated
Junior Member
Join Date: Oct 2005
Old 04-16-2006 , 16:08  
Reply With Quote #5

Before I use that script, is it correct? I can't see a time variable
discombobulated is offline
awuh0
Senior Member
Join Date: Apr 2005
Location: /dev/null
Old 04-16-2006 , 18:28  
Reply With Quote #6

Quote:
Originally Posted by ichthys
you could use eventscripts + mani
  • player_spawn.cfg
Quote:
es ma_sethealth event_var(userid) 10000
es_delayed 10 ma_sethealth event_var(userid) 100
__________________
~The_wUh
_________________
Ph34r teh zombies!!!
find a better way to play CSS, connect to...
thewuh.servebeer.com
thecircus.servebeer.com
awuh0 is offline
Send a message via ICQ to awuh0 Send a message via AIM to awuh0 Send a message via MSN to awuh0
discombobulated
Junior Member
Join Date: Oct 2005
Old 04-16-2006 , 22:53  
Reply With Quote #7

Why thank you

Last thing, this should be really simple, I want the console to say "10 Second Spawn Protection Active!" at the start of a round, using eventscripts probably. Any help?

(Eventually I will put the eventscripts code into a file under map_config, in mani)
discombobulated is offline
ichthys
Veteran Member
Join Date: Dec 2004
Location: []*[]
Old 04-17-2006 , 04:25  
Reply With Quote #8

round_start.cfg
Quote:
es_msg #lightgreen 10 Seconds spawn protection time enabled
You can find all events in the following files
Code:
cstrike/resource/modevents.res
hl2/resource/servervents.res
hl2/resource/gamevents.res
NB: Not all events fire/work
__________________
ichthys is offline
discombobulated
Junior Member
Join Date: Oct 2005
Old 04-17-2006 , 11:46  
Reply With Quote #9

Thanks a lot, you've been a great help
discombobulated is offline
discombobulated
Junior Member
Join Date: Oct 2005
Old 04-19-2006 , 16:52  
Reply With Quote #10

Any suggestions on how to do this on a select-map basis?
discombobulated 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 20:48.


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