Change set 10/11

Adds all of the progress as of 10/11. NOTE: Do not run the mod right now
as there are a lot of features that won't work (IE: Player Zombies, All
Zombie Types other than Normal).
This commit is contained in:
Robert Fritzen 2017-10-11 11:46:41 -05:00
parent 9a456d079b
commit 739d77d1e2
37 changed files with 1689 additions and 746 deletions

View file

@ -207,7 +207,7 @@ function MedPackGunImage::onRepair(%this,%obj,%slot){
}
if (%targetObject.infected && %targetObject.getState() !$= "dead") {
CureInfection(%targetObject);
TWM2Lib_Zombie_Core("cureInfection", %targetObject);
%targetObject.playAudio(0, ShockLanceHitSound);
messageclient(%obj.client, 'MsgClient', "\c2Applying Zombie Cure To "@%targetObject.client.namebase@".");
messageclient(%targetObject.client, 'MsgClient', "\c2Zombie Cure Applied By "@%obj.client.namebase@".");

View file

@ -3,15 +3,6 @@ $TeamDeployableMax[ZSpawnDeployable] = 9999;
// Zombie Spawn Point
//---------------------------------------------------------
$zombie::detectDist = 100;
$zombie::lungDist = 10;
$zombie::LKillDist = 5;
$zombie::Rupvec = 750;
$zombie::killpoints = 5;
$Zombie::RAAMThread = "cel1";
$Zombie::RogThread = "cel1";
datablock AudioProfile(ZombieMoan)
{
filename = "fx/environment/growl3.wav";
@ -442,3 +433,20 @@ function DeployedZSpawnBase::onLosePowerDisabled(%data,%obj) {
Cancel(%obj.ZCLoop);
Parent::onLosePowerDisabled(%data,%obj);
}
function ZcreateLoop(%obj) {
if(isObject(%obj)) {
if(%obj.timedout == 0){
if(%obj.numZ <= 2 || %obj.numZ $= "") {
TWM2Lib_Zombie_Core("SpawnZombie", "zPack", %obj);
if(%obj.numZ $= "") {
%obj.numZ = 0;
}
%obj.numZ++;
%obj.timedout = 1;
schedule(10000, 0, "eval", ""@%obj@".timedout = 0;");
}
}
%obj.ZCLoop = schedule(2000, 0, "ZcreateLoop", %obj);
}
}