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.