You are viewing our Forum Archives. To view or take place in current topics click here.
[Release]Portal Grenades
Posted:
[Release]Portal GrenadesPosted:
Status: Offline
Joined: Oct 11, 201014Year Member
Posts: 1,789
Reputation Power: 88
Status: Offline
Joined: Oct 11, 201014Year Member
Posts: 1,789
Reputation Power: 88
Just something when i made a preview for my menu, a lot of people said they wanted them :L
May as well release em xD Made this a while ago so theres probably a lot of code and not very clean but. Well. Who cares :L Not like were running out of space.
Video:
Skip to 0:50
Code:
May as well release em xD Made this a while ago so theres probably a lot of code and not very clean but. Well. Who cares :L Not like were running out of space.
Video:
Skip to 0:50
Code:
ToggleTele()
{
if( self.PowerGrenUpsx == 0 )
{
self thread TeleportGrenades();
self.PowerGrenUpsx = 1;
self iPrintln( "Portal Grenades ^2On" );
}
else
{
self notify( "EndAllx" );
self.PowerGrenUpsx = 0;
self iPrintln( "Portal Grenades ^1Off" );
}
}
TeleportGrenades()
{
self endon("Endit");
self endon("EndAllx");
for(;;)
{
self waittill( "grenade_fire", GrenadeWeapon );
num_attractors = 96;
max_attract_dist = 100000;
GrenadeWeapon.angles = ( 0, 0, 0 );
GrenadeWeapon create_zombie_point_of_interest( max_attract_dist, num_attractors, 10000 );
GrenadeWeapon.attract_to_origin=true;
wait 1;
self thread FX( GrenadeWeapon );
for( i=0; i <= 10; i++ )
{
if( i <= 10 )
{
GrenadeWeapon resetmissiledetonationtime();
wait 1;
}
}
self notify("endFX");
}
}
FX( GrenadeWeapon )
{
self endon("EndAllx");
self endon("Endit");
self.spawn = 0;
for(;;)
{
veloc = self getVelocity();
if( GrenadeWeapon.veloc[0] == 0 && GrenadeWeapon.veloc[1] == 0 && GrenadeWeapon.veloc[2] == 0 )
{
GrenadeWeapon hide();
level thread GrenadeTP( GrenadeWeapon );
for( i=0; i <= 4; i++ )
{
Playfxontag(level._effect["monkey_glow"],GrenadeWeapon,"tag_origin");
wait .1;
}
self waittill("endFX");
self notify("Done");
GrenadeWeapon Destroy();
GrenadeWeapon Delete();
level._effect["monkey_glow"] Destroy();
level._effect["monkey_glow"] Delete();
self notify("Endit");
}
wait .1;
}
}
GrenadeTP( GrenadeWeapon )
{
self endon("EndAllx");
self endon("Done");
self endon("Endit");
for(;;)
{
if( distance( self.origin, GrenadeWeapon.origin ) <= 50)
{
self shellshock("electrocution", 1.5);
playfx(loadfx("maps/zombie/fx_transporter_beam"), self.origin);
wait 1.5;
self.Teleposition = [];
self.Teleposition[0] = (-58,301 ,103);
self.Teleposition[1] = (-817,-268 ,199);
self.Teleposition[2] = (-796,-537 ,67);
self.Teleposition[3] = (-1588,-1122,199);
self.Teleposition[4] = (286,-3024,156);
self.Teleposition[5] = (1278,1081,168);
self.Teleposition[6] = (302,-1351,54);
self.Teleposition[7] = (787,-666,64);
self.PosPicked = RandomInt( self.Teleposition.size );
self setorigin ( self.Teleposition[self.PosPicked] );
self shellshock("electrocution", 1.5);
playfx(loadfx("maps/zombie/fx_transporter_beam"), self.origin);
self waittill("endFX");
break;
}
wait .1;
}
}
Endon( fx )
{
self endon("EndAll");
self waittill("endFXx");
fx delete();
fx Destroy();
}
#2. Posted:
Status: Offline
Joined: Aug 23, 201014Year Member
Posts: 1,260
Reputation Power: 59
Status: Offline
Joined: Aug 23, 201014Year Member
Posts: 1,260
Reputation Power: 59
this is really cool nice job
- 0useful
- 0not useful
#3. Posted:
Status: Offline
Joined: Oct 11, 201014Year Member
Posts: 1,789
Reputation Power: 88
Status: Offline
Joined: Oct 11, 201014Year Member
Posts: 1,789
Reputation Power: 88
TTG_Limitless wrote this is really cool nice job
Why thankss Youuu xD
- 0useful
- 0not useful
#4. Posted:
Status: Offline
Joined: Sep 01, 201014Year Member
Posts: 1,337
Reputation Power: 53
Status: Offline
Joined: Sep 01, 201014Year Member
Posts: 1,337
Reputation Power: 53
Awesome release I will def use this If i can find the error in my menu. Check Milestones and Achievemnts Forum Sonic, your in my thanks list on my post
- 0useful
- 0not useful
You are viewing our Forum Archives. To view or take place in current topics click here.