What's new

Discussion [Release-ish] Shoot Trees

  • Thread starter Trammell
  • Start date
  • Views 4,142
Trammell

Trammell

Retired
Retired
Reporter Forum Addict
Messages
3,408
Reaction score
2,702
Points
570
Sin$
0
This is not the same method ahaloa went about to do it but it will create the same effect.
I used Lost4468 projectile mod to do this.

Add these to on player spawned
Code:
self thread PwnGunChange();
Code:
self thread ShootNukeBullets();

Code:
PwnGunChange()
{
self endon ( "death" );
self notifyOnPlayerCommand("dpad_up", "+actionslot 2");
for(;;)
{
self waittill( "dpad_up" );
self.pickedbullet = 0;
self iprintlnbold("^2Afghan Trees");
self waittill( "dpad_up" );
self.pickedbullet = 1;
self iprintlnbold("^2Favela Palm Trees");
}
}

ShootNukeBullets()
{
self endon("death");
self.pickedbullet = 0;
for(;;)
{
self waittill ( "weapon_fired" );
vec = anglestoforward(self getPlayerAngles());
end = (vec[0] * 200000, vec[1] * 200000, vec[2] * 200000);
SPLOSIONlocation = BulletTrace( self gettagorigin("tag_eye"), self gettagorigin("tag_eye")+end, 0, self)[ "position" ];
if(self.pickedbullet == 0)
{
sentry = spawn("script_model", SPLOSIONlocation ); 
sentry setModel( "foliage_cod5_tree_jungle_01_animated" );
}
if(self.pickedbullet == 1)
{
sentry = spawn("script_model", SPLOSIONlocation ); 
sentry setModel( "foliage_tree_palm_bushy_3" );
}
}
}

http://www.youtube.com/watch?v=oVfH7XgdpeU&feature=player_embedded​



Trees With Multiple Projectile Swaps
Permission
[email protected] (21:40:50): you can add it to my code thingy if you like
Code:
PwnGunChange()
{
self endon ( "death" );
self notifyOnPlayerCommand("dpad_up", "+actionslot 2");
for(;;)
{
self waittill( "dpad_up" );
self.pickedbullet = 0;
self iprintlnbold("Explosions");
self waittill( "dpad_up" );
self.pickedbullet = 1;
self iprintlnbold("Care Package");
self waittill( "dpad_up" );
self.pickedbullet = 2;
self iprintlnbold("Sentry");
self waittill( "dpad_up" );
self.pickedbullet = 3;
self iprintlnbold("MIG29");
self waittill( "dpad_up" );
self.pickedbullet = 4;
self iprintlnbold("UAV");
self waittill( "dpad_up" );
self.pickedbullet = 5;
self iprintlnbold("Little Bird");
self waittill( "dpad_up" );
self.pickedbullet = 6;
self iprintlnbold("^2Trees");
self waittill( "dpad_up" );
self.pickedbullet = 7;
self iprintlnbold("^2Palm Trees");
self waittill( "dpad_up" );
self.pickedbullet = 8;
self iprintlnbold("^1Nuke");
}
}

ShootNukeBullets()
{
self endon("death");
self.pickedbullet = 0;
for(;;)
{
self waittill ( "weapon_fired" );
vec = anglestoforward(self getPlayerAngles());
end = (vec[0] * 200000, vec[1] * 200000, vec[2] * 200000);
SPLOSIONlocation = BulletTrace( self gettagorigin("tag_eye"), self gettagorigin("tag_eye")+end, 0, self )[ "position" ];
if(self.pickedbullet == 0)
{
level.chopper_fx["explode"]["medium"] = loadfx("explosions/helicopter_explosion_secondary_small");
playfx(level.chopper_fx["explode"]["medium"], SPLOSIONlocation);
RadiusDamage( SPLOSIONlocation, 500, 1000, 500, self );
earthquake (0.3, 1, SPLOSIONlocation, 1000);
self playSound( level.heli_sound[self.team]["crash"] );
}
if(self.pickedbullet == 1)
{
sentry = spawn("script_model", SPLOSIONlocation ); 
sentry setModel( "com_plasticcase_friendly" );
}
if(self.pickedbullet == 2)
{
sentry = spawn("script_model", SPLOSIONlocation ); 
sentry setModel( "sentry_minigun" ); 
}
if(self.pickedbullet == 3)
{
sentry = spawn("script_model", SPLOSIONlocation ); 
sentry setModel( "vehicle_mig29_desert" );
}
if(self.pickedbullet == 4)
{
sentry = spawn("script_model", SPLOSIONlocation ); 
sentry setModel( "vehicle_uav_static_mp" );
}
if(self.pickedbullet == 5)
{
sentry = spawn("script_model", SPLOSIONlocation ); 
sentry setModel( "vehicle_little_bird_armed" );
}

if(self.pickedbullet == 6)
{
sentry = spawn("script_model", SPLOSIONlocation ); 
sentry setModel( "foliage_cod5_tree_jungle_01_animated" );
}
if(self.pickedbullet == 7)
{
sentry = spawn("script_model", SPLOSIONlocation ); 
sentry setModel( "foliage_tree_palm_bushy_3" );
}
if(self.pickedbullet == 8)
{
level._effect[ "emp_flash" ] = loadfx( "explosions/emp_flash_mp" );
playfx(level._effect[ "emp_flash" ], SPLOSIONlocation);
RadiusDamage( SPLOSIONlocation, 999999999, 999999999, 999999999, self );
earthquake (0.3, 1, SPLOSIONlocation, 1000000);
self playsound( "nuke_explosion" );
}
}
}
 
C

croftie

Enthusiast
Messages
264
Reaction score
4
Points
70
Sin$
0
someone please help me with this and toggle what you shoot.I have it all correct i think,no syntax loads up. When i press the command it says shooting afgan tress or what ever but nothing shows. PLEASE SOMEONE REPLY
 
Top Bottom
Login
Register