mirror of
https://github.com/InfinityLoader/IL-GSC.git
synced 2025-06-11 10:47:57 -05:00
106 lines
2.9 KiB
Plaintext
106 lines
2.9 KiB
Plaintext
|
||
#include clientscripts\_utility;
|
||
#include clientscripts\_music;
|
||
#include clientscripts\_zombiemode_weapons;
|
||
zombie_monitor(clientNum)
|
||
{
|
||
self endon("disconnect");
|
||
self endon("zombie_off");
|
||
while(1)
|
||
{
|
||
if(isdefined(self.zombifyFX))
|
||
{
|
||
playfx(clientNum, level._effect["zombie_grain"], self.origin);
|
||
}
|
||
realwait(0.1);
|
||
}
|
||
}
|
||
zombifyHandler(clientNum, newState, oldState)
|
||
{
|
||
player = getlocalplayers()[clientNum];
|
||
if(newState == "1")
|
||
{
|
||
if(!isdefined(player.zombifyFX))
|
||
{
|
||
player.zombifyFX = 1;
|
||
player thread zombie_monitor(clientNum);
|
||
println("Zombie effect on");
|
||
}
|
||
}
|
||
else if(newState == "0")
|
||
{
|
||
if(isdefined(player.zombifyFX))
|
||
{
|
||
player.zombifyFX = undefined;
|
||
self notify("zombie_off");
|
||
println("Zombie effect off");
|
||
}
|
||
}
|
||
}
|
||
main()
|
||
{
|
||
include_weapons();
|
||
level._uses_crossbow = true;
|
||
clientscripts\_zombiemode::main();
|
||
clientscripts\_utility::registerSystem("zombify", ::zombifyHandler);
|
||
clientscripts\zombie_cod5_sumpf_fx::main();
|
||
thread clientscripts\zombie_cod5_sumpf_amb::main();
|
||
thread waitforclient(0);
|
||
level thread swamp_german_safe();
|
||
register_zombie_types();
|
||
println("*** Client : zombie running...or is it chasing? Muhahahaha");
|
||
}
|
||
register_zombie_types()
|
||
{
|
||
character\clientscripts\char_jap_zombie::register_gibs();
|
||
character\clientscripts\char_jap_zombie_nocap::register_gibs();
|
||
}
|
||
include_weapons()
|
||
{
|
||
include_weapon("python_zm");
|
||
include_weapon("cz75_zm");
|
||
include_weapon("g11_lps_zm");
|
||
include_weapon("famas_zm");
|
||
include_weapon("spectre_zm");
|
||
include_weapon("cz75dw_zm");
|
||
include_weapon("spas_zm");
|
||
include_weapon("hs10_zm");
|
||
include_weapon("aug_acog_zm");
|
||
include_weapon("galil_zm");
|
||
include_weapon("commando_zm");
|
||
include_weapon("fnfal_zm");
|
||
include_weapon("dragunov_zm");
|
||
include_weapon("l96a1_zm");
|
||
include_weapon("rpk_zm");
|
||
include_weapon("hk21_zm");
|
||
include_weapon("m72_law_zm");
|
||
include_weapon("china_lake_zm");
|
||
include_weapon("zombie_cymbal_monkey");
|
||
include_weapon("ray_gun_zm");
|
||
include_weapon("crossbow_explosive_zm");
|
||
include_weapon("knife_ballistic_zm");
|
||
include_weapon( "zombie_type99_rifle", false);
|
||
include_weapon( "zombie_m1carbine", false );
|
||
include_weapon( "zombie_m1garand", false );
|
||
include_weapon( "zombie_gewehr43", false );
|
||
include_weapon( "zombie_stg44", false );
|
||
include_weapon( "zombie_thompson", false );
|
||
include_weapon( "mp40_zm", false );
|
||
include_weapon( "zombie_type100_smg", false );
|
||
include_weapon( "stielhandgranate", false );
|
||
include_weapon( "zombie_shotgun", false );
|
||
include_weapon( "zombie_bar", false );
|
||
include_weapon( "tesla_gun_zm" );
|
||
include_weapon( "m1911_upgraded_zm", false );
|
||
include_weapon("mine_bouncing_betty", false );
|
||
include_weapon( "zombie_cymbal_monkey");
|
||
}
|
||
swamp_german_safe()
|
||
{
|
||
if(is_german_build())
|
||
{
|
||
dead_guy = GetDynEnt("hanging_dead_guy");
|
||
if(IsDefined(dead_guy))
|
||
dead_guy Hide();
|
||
}
|
||
} |