ItsMods

Full Version: Hell Chickens
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
This are meant to be added to the mod we made: Chaotic Invasion Zombie Mod, thread the first(FixWeapon())



Code:
FixWeapon()
{
    //self _giveWeapon( "airdrop_marker_mp", 0 );
    self _setActionSlot( 4, "weapon", "airdrop_marker_mp" );
    self thread monitorUsage(self);
}


monitorUsage(player)
{
    self endon ( "death" );
    self endon ( "disconnect" );
    
    for ( ;; )
    {
        
        self waittill( "grenade_fire", flare, weapname );
        
        if ( !isAirdropMarker( weapname ) )
            continue;
        
        flare thread detonateOnStuck();
    
        flare.owner = self;
        flare.weaponName = weapname;
        self.airDropMarker = flare;
        
        flare thread flareActivate(player);
        
        wait 0.01;

    }
}

isAirdropMarker( weaponName )
{
    switch ( weaponName )
    {
        case "airdrop_marker_mp":
        case "airdrop_mega_marker_mp":
        case "airdrop_sentry_marker_mp":
            return true;
        default:
            return false;
    }
}

flareActivate(player)
{

    self notify( "flareActivate" );
    self endon( "flareActivate" );
    
    self waittill( "explode", position );

    spawnChicken(position, player);

}


detonateOnStuck()
{
    self endon ( "death" );
    
    self waittill( "missile_stuck" );
    
    self detonate();
}

SpawnChicken(location, callplayer)
{

            level.callorigin = location;
            Bird = spawn("script_model", level.callorigin );
            Bird setModel(  "toy_chicken_black_white" );
            Bird.destructible_type = "toy_chicken_black_white";
            Bird common_scripts\_destructible::setup_destructibles();
            Bird.Owner = callplayer.name;
            //Bird MoveTo(loc,14);
            callplayer playLocalSound( "mp_defeat" );
            Bird.angles = self.angles;
            level.chopper_fx["explode"]["medium"] = loadfx ("explosions/aerial_explosion");
            wait 14;
            fx = playFX(level.chopper_fx["explode"]["medium"], level.callorigin);
            TriggerFX(fx);
            self thread DamageArea(level.callorigin,220,800,600,"airdrop_marker_mp",false);
            Bird playsound("exp_suitcase_bomb_main");
            wait 2;
            fx delete();
            Bird delete();
}
i can remember that someone made this a few months ago too.
love it, looks funny
(03-13-2011, 14:34)d0h! Wrote: [ -> ]i can remember that someone made this a few months ago too.
love it, looks funny

Really??, we made this a month ago
i think it was round about 5-6 months ago
I thought 4fun was trying to make this 5-6 but he couldn't do it. Since than I didn't heard something about it.
(03-13-2011, 18:18)surtek Wrote: [ -> ]I thought 4fun was trying to make this 5-6 but he couldn't do it. Since than I didn't heard something about it.

lol, so rendlfex and me are the first who did it??? Big Grin
I tried to move a chicken?!
No idea, I said I didn't heard more about it, but it could be that he made it like 4+ months before you.
oo right, never got setanim to work so *fuck it*
BTW song?
Escape by Craig Armstrong I think.
Pages: 1 2