FileFront Forums

FileFront Forums (http://forums.filefront.com/)
-   CoD Modding, Mapping and Editing (http://forums.filefront.com/cod-modding-mapping-editing-701/)
-   -   Spawn protection mod (http://forums.filefront.com/cod-modding-mapping-editing/217131-spawn-protection-mod.html)

=TLI=Drunk September 21st, 2005 11:13 PM

Spawn protection mod
 
Im looking for a spawn protection mod for our server.


We have one on our AWE server but need one on our un-moded server but we dont want big downloads on it.


Can anyone help:confused:

Tally October 22nd, 2005 02:21 PM

Re: Spawn protection mod
 
I would just use AWE and turn all the other features off. It doesnt have to be downloaded to the player, as it is a server-side mod.

Tacticious November 4th, 2005 09:08 PM

Re: Spawn protection mod
 
Quote:

Originally Posted by tally
I would just use AWE and turn all the other features off. It doesnt have to be downloaded to the player, as it is a server-side mod.

Using the mod itself with all features turned off will still make the player download it if downloading is enabled on the client's side.

I have a simple (VERY simple) means of doing it. Take a look:

Code:

spawnProtection()
{
self endon("killed");
self endon("spanwed");
self endon("disconnect");
//... any other triggers necessary
self.spawnprotect=true;

duration=getCvarFloat("sv_spawn_protection_time");
wait duration;
self.spawnprotect=undefined;
}

Save that as _spawn.gsc (in the SAME directory as _teams.gsc, which is
pakuo04.pk3).

now, edit _teams.gsc.. Here are the instructions when the file is open (just use wordpad):
Search for "Callback_PlayerDamage", or just find it yourself :P
Right inside that function (or directly below the {) at the very top, put in the following code
Code:

if (isdefined(self.spawnprotect)) return;
Now, add the following code to the BOTTOM of your spawnPlayer() function (within _teams.gsc):
Code:

self thread maps\MP\gametypes\_spawn::spawnProtection();
Now, get yourself a config file. You'll probably want to use config.cfg. Add set sv_spawn_protection_time "x" to it, x being the time (in seconds) you would like your spawners to be protected.

You're now ready! Good luck. Also please note, this requires absolutely no downloading.


All times are GMT -7.

Powered by vBulletin®
Copyright ©2000 - 2016, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.