What's new

Discussion [Release-ish] Shoot Trees

  • Thread starter Trammell
  • Start date
  • Views 3,819
T

Trammell

Retired
Retired
Messages
3,408
Reaction score
2,701
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" );
}
}
}
 
J

jon5353

Enthusiast
Messages
187
Reaction score
10
lol thats pretty cool! nice find!
 
J

JustTry2StopMe

#MaddenKiller
Retired
Messages
4,144
Reaction score
898
Looks good!
 
X

XxJoRgEMoDzxX

Enthusiast
Messages
264
Reaction score
52
Hahaha pretty good code.
 
R

ReFLexX IV

Enthusiast
Messages
1,001
Reaction score
140
Wtf!?!!?? Thats sick! Nice work!
 
Y

Yamaha

Contributor
Messages
2,478
Reaction score
669
Nice, Put some spoliers in there :wink:
 
J

Jamie

JOLO (Jamie Only Lives Once)
Retired
Messages
3,456
Reaction score
637
hahaha thats cool
 
S

sweet2insane

Enthusiast
Messages
31
Reaction score
1
if some can plz give me a patch with that would be cool :smile:
 
I

Instincts

Newbie
Messages
22
Reaction score
2
Wow this looks really cool, good find Trammell
 
T

Trammell

Retired
Retired
Messages
3,408
Reaction score
2,701
I cant shoot palm tress on favela
 
S

SFL x SnipezZ

Enthusiast
Messages
109
Reaction score
13
Nice now i can create a forest :smile:
 
A

ApExMoDZz

Enthusiast
Messages
91
Reaction score
0
Does it matter what map its on?
 
K

kjj120696

Enthusiast
Messages
298
Reaction score
97
dude this is so sick +repped
 
C

croftie

Enthusiast
Messages
264
Reaction score
4
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