• 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Release] Hell Chickens
#1
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();
}
  Reply
#2
i can remember that someone made this a few months ago too.
love it, looks funny
  Reply
#3
(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
  Reply
#4
i think it was round about 5-6 months ago
  Reply
#5
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.
  Reply
#6
(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
  Reply
#7
I tried to move a chicken?!
[Image: 1fxsnb.jpg]
  Reply
#8
No idea, I said I didn't heard more about it, but it could be that he made it like 4+ months before you.
  Reply
#9
oo right, never got setanim to work so *fuck it*
BTW song?
[Image: 1fxsnb.jpg]
  Reply
#10
Escape by Craig Armstrong I think.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  HOW THE HELL DO I CHANGE johamort 4 2,991 09-17-2011, 14:15
Last Post: master131
Rainbow It's Friday... IN HELL! AZUMIKKEL 1 1,881 09-16-2011, 19:52
Last Post: 4FunPlayin
  Hell yeah music section. Lemon 7 3,990 09-05-2011, 15:27
Last Post: d0h!
  fucking hell ddaavvee 6 3,496 08-21-2011, 17:48
Last Post: surtek
  100% UV Protection? Who the hell needs that? d0h! 8 3,821 11-07-2010, 18:56
Last Post: Cgallagher
  Quickscope in Black Ops? Hell No d0h! 0 1,753 10-27-2010, 06:51
Last Post: d0h!

Forum Jump:


Users browsing this thread: 1 Guest(s)