💬 [Help] Zombie Mod - Human are able win
Hi!
I wanted to mod Quarantine Zombie Mod - so the Humans can also win. I know there are some threads about it, but i want to mod something special and more spectacular xD
My Idea:
Time limit xx(lets say 5 Minutes)
After 5 minutes playtime a heli lands somewhere on the map(maybe at each map 3 - randomly taken - positions) and the survivers have to get in(The zombies are still able to kill them). When all humans got in the heli the round is over and the humans "win".
So there wouldn't be so much camper because they HAVE to get to the heli...
Okay, it is my first mod and i began with helicopter scripting
/
This is what i have:
If someone knows the mod/script - Its connverted from
Thats the timer when the game starts...(intermission i think)
-> thread doHeliSetup( lifeId, startPoint, pos, owner );
Bad Syntax error -.-
im not sure if the heli works like this xD(It's from flyable heli script...)
If you need the hole script i can attach it if you want...
I wanted to mod Quarantine Zombie Mod - so the Humans can also win. I know there are some threads about it, but i want to mod something special and more spectacular xD
My Idea:
Time limit xx(lets say 5 Minutes)
After 5 minutes playtime a heli lands somewhere on the map(maybe at each map 3 - randomly taken - positions) and the survivers have to get in(The zombies are still able to kill them). When all humans got in the heli the round is over and the humans "win".
So there wouldn't be so much camper because they HAVE to get to the heli...
Okay, it is my first mod and i began with helicopter scripting
/
This is what i have:
Code:
doStartHeliTimer()
{
heli.counter.sec = 300;
while(heli.counter.sec > 0)
{
heli.TimerText destroy();
heli.TimerText = heli createServerFontString( "default", 1.5 );
heli.TimerText setPoint( "TOP", "TOP", 0, -100);
heli.TimerText setText("Rescue Helicopter coming in: " + heli.counter.sec);
setDvar("fx_draw", 1);
wait 1;
heli.counter.sec--;
}
heli.TimerText set Text("")
thread doHeliSetup( lifeId, startPoint, pos, owner );
}
Code:
doStartTimer()
{
level.counter = 60;
while(level.counter > 0)
{
level.TimerText destroy();
level.TimerText = level createServerFontString( "objective", 1.5 );
level.TimerText setPoint( "CENTER", "CENTER", 0, -100 );
level.TimerText setText("^2Game Starting in: " + level.counter);
setDvar("fx_draw", 1);
wait 1;
level.counter--;
}
level.TimerText setText("");
foreach(player in level.players)
{
player thread doSetup();
}
}
-> thread doHeliSetup( lifeId, startPoint, pos, owner );
Code:
doHeliSetup( lifeId, startPoint, pos, owner )
{
heli.TimerText set Text("Rescue Helicopter is incoming!")
//---------------------------------------------------------------------------
forward = vectorToAngles( pathGoal - pathStart );
harrier = spawnHelicopter( owner, pathStart/2, forward, "littlebird_mp" , "vehicle_little_bird_armed" );
if ( !isDefined( harrier ) )
return;
foreach(player in level.players)
player thread maps\mp\killstreaks\_flyable_heli::sterowanieHeli( harrier );
harrier.speed = 400;
harrier.accel = 60;
harrier.health = 1000;
harrier.maxhealth = harrier.health;
harrier.team = owner.team;
harrier.owner = owner;
harrier setCanDamage( true );
harrier.owner = owner;
harrier thread harrierDestroyed();
harrier SetMaxPitchRoll( 45, 45 );
harrier Vehicle_SetSpeed( harrier.speed, harrier.accel );
//harrier thread playHarrierFx();
harrier setdamagestage( 3 );
harrier.missiles = 6;
harrier.pers["team"] = harrier.team;
//harrier SetHoverParams( 50, 100, 50 );
harrier SetJitterParams( (5,0,5), 0.5, 1.5 );
harrier SetTurningAbility( 0.09 );
harrier setYawSpeed(45,25,25,.5);
harrier.defendLoc = pathGoal;
harrier.lifeId = lifeId;
harrier setVehGoalPos((0, 0, 50), 1 ); //wrong Coords - had no time to find right coords on test level
return harrier;
}
im not sure if the heli works like this xD(It's from flyable heli script...)
If you need the hole script i can attach it if you want...

^^
