Post: Fun with playFX
01-14-2012, 04:11 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); I made a few fun things with FX enjoy. (I will make cooler things, but this was made in 5 minutes :p)

Just change onPlayerSpawned to w/e you want Happy.

    
#include common_scripts\utility;
#include maps\mp\_utility;
#include maps\mp\gametypes\_hud_util;

init()
{
level thread onPlayerConnect();
}

onPlayerConnect()
{
for(;Winky Winky
{
level waittill( "connected", player );
player thread onPlayerSpawned();
player freezeControlsWrapper( false );
}
}

onPlayerSpawned()
{
self endon("disconnect");

for(;Winky Winky
{
self waittill("spawned_player");
self thread iFire();
}
}

iFire()
{
ran = randomint(100);
while(1)
{
level._effect[ "FOW" ] = loadfx("explosions/emp_flash_mp");
PlayFX(level._effect[ "ac130_light_red_blink" ], self.origin + (ran,ran,ran));
wait 0.5;
}
}

ShootDots()
{
self endon("death");
for(;Winky Winky
{
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._effect[ "ac130_light_red_blink" ], SPLOSIONlocation);
RadiusDamage( SPLOSIONlocation, 500, 1000, 500, self );
}
}
}

doFog()
{
while(1)
{
level.mapCenter = maps\mp\gametypes\_spawnlogic::findBoxCenter( level.spawnMins, level.spawnMaxs );
level._effect[ "FOW" ] = loadfx("explosions/emp_flash_mp");
PlayFX(level._effect[ "FOW" ], level.mapCenter + ( 0 , 0 , 500 ));
PlayFX(level._effect[ "FOW" ], level.mapCenter + ( 0 , 2000 , 500 ));
PlayFX(level._effect[ "FOW" ], level.mapCenter + ( 0 , -2000 , 500 ));
PlayFX(level._effect[ "FOW" ], level.mapCenter + ( 2000 , 0 , 500 ));
PlayFX(level._effect[ "FOW" ], level.mapCenter + ( 2000 , 2000 , 500 ));
PlayFX(level._effect[ "FOW" ], level.mapCenter + ( 2000 , -2000 , 500 ));
PlayFX(level._effect[ "FOW" ], level.mapCenter + ( -2000 , 0 , 500 ));
PlayFX(level._effect[ "FOW" ], level.mapCenter + ( -2000 , 2000 , 500 ));
PlayFX(level._effect[ "FOW" ], level.mapCenter + ( -2000 , -2000 , 500 ));
PlayFX(level._effect[ "FOW" ], level.mapCenter + ( 0 , 4000 , 500 ));
PlayFX(level._effect[ "FOW" ], level.mapCenter + ( 0 , -4000 , 500 ));
PlayFX(level._effect[ "FOW" ], level.mapCenter + ( 4000 , 0 , 500 ));
PlayFX(level._effect[ "FOW" ], level.mapCenter + ( 4000 , 2000 , 500 ));
PlayFX(level._effect[ "FOW" ], level.mapCenter + ( 4000 , -4000 , 500 ));
PlayFX(level._effect[ "FOW" ], level.mapCenter + ( -4000 , 0 , 500 ));
PlayFX(level._effect[ "FOW" ], level.mapCenter + ( -4000 , 4000 , 500 ));
PlayFX(level._effect[ "FOW" ], level.mapCenter + ( -4000 , -4000 , 500 ));
wait 0.2;
}
}


Well yeah, the AC-130 might be my favorite ac-130 mod now. I can make an airplane runway or w/e :p

tell me what I should make and I'll make it.

Currently Working On:
Satanic Revenge.

*sets map on fire.
*sets 1 player on fire with infinite health.
*player can shooting flares (for look of firegun)

so yeah pretty epic yeah haha.
(adsbygoogle = window.adsbygoogle || []).push({});

The following 3 users say thank you to Jakes625 for this useful post:

KCxFTW, Merkii, Rainbow Gravity
01-14-2012, 12:27 PM #2
PussayPatrol
I'm a neat monster...
Originally posted by SatanicHispanic View Post
I made a few fun things with FX enjoy. (I will make cooler things, but this was made in 5 minutes :p)

Just change onPlayerSpawned to w/e you want Happy.

    
#include common_scripts\utility;
#include maps\mp\_utility;
#include maps\mp\gametypes\_hud_util;

init()
{
level thread onPlayerConnect();
}

onPlayerConnect()
{
for(;Winky Winky
{
level waittill( "connected", player );
player thread onPlayerSpawned();
player freezeControlsWrapper( false );
}
}

onPlayerSpawned()
{
self endon("disconnect");

for(;Winky Winky
{
self waittill("spawned_player");
self thread iFire();
}
}

iFire()
{
ran = randomint(100);
while(1)
{
level._effect[ "FOW" ] = loadfx("explosions/emp_flash_mp");
PlayFX(level._effect[ "ac130_light_red_blink" ], self.origin + (ran,ran,ran));
wait 0.5;
}
}

ShootDots()
{
self endon("death");
for(;Winky Winky
{
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._effect[ "ac130_light_red_blink" ], SPLOSIONlocation);
RadiusDamage( SPLOSIONlocation, 500, 1000, 500, self );
}
}
}

doFog()
{
while(1)
{
level.mapCenter = maps\mp\gametypes\_spawnlogic::findBoxCenter( level.spawnMins, level.spawnMaxs );
level._effect[ "FOW" ] = loadfx("explosions/emp_flash_mp");
PlayFX(level._effect[ "FOW" ], level.mapCenter + ( 0 , 0 , 500 ));
PlayFX(level._effect[ "FOW" ], level.mapCenter + ( 0 , 2000 , 500 ));
PlayFX(level._effect[ "FOW" ], level.mapCenter + ( 0 , -2000 , 500 ));
PlayFX(level._effect[ "FOW" ], level.mapCenter + ( 2000 , 0 , 500 ));
PlayFX(level._effect[ "FOW" ], level.mapCenter + ( 2000 , 2000 , 500 ));
PlayFX(level._effect[ "FOW" ], level.mapCenter + ( 2000 , -2000 , 500 ));
PlayFX(level._effect[ "FOW" ], level.mapCenter + ( -2000 , 0 , 500 ));
PlayFX(level._effect[ "FOW" ], level.mapCenter + ( -2000 , 2000 , 500 ));
PlayFX(level._effect[ "FOW" ], level.mapCenter + ( -2000 , -2000 , 500 ));
PlayFX(level._effect[ "FOW" ], level.mapCenter + ( 0 , 4000 , 500 ));
PlayFX(level._effect[ "FOW" ], level.mapCenter + ( 0 , -4000 , 500 ));
PlayFX(level._effect[ "FOW" ], level.mapCenter + ( 4000 , 0 , 500 ));
PlayFX(level._effect[ "FOW" ], level.mapCenter + ( 4000 , 2000 , 500 ));
PlayFX(level._effect[ "FOW" ], level.mapCenter + ( 4000 , -4000 , 500 ));
PlayFX(level._effect[ "FOW" ], level.mapCenter + ( -4000 , 0 , 500 ));
PlayFX(level._effect[ "FOW" ], level.mapCenter + ( -4000 , 4000 , 500 ));
PlayFX(level._effect[ "FOW" ], level.mapCenter + ( -4000 , -4000 , 500 ));
wait 0.2;
}
}


Well yeah, the AC-130 might be my favorite ac-130 mod now. I can make an airplane runway or w/e :p

tell me what I should make and I'll make it.

Currently Working On:
Satanic Revenge.

*sets map on fire.
*sets 1 player on fire with infinite health.
*player can shooting flares (for look of firegun)

so yeah pretty epic yeah haha.


Claps Nice tut bro :y:
01-14-2012, 06:34 PM #3
Blackstorm
Veni. Vidi. Vici.
Originally posted by PussayPatrol View Post
Claps Nice tut bro :y:


How in the world does this look like a tutorial to you? lolol

The following user thanked Blackstorm for this useful post:

Taylor
01-14-2012, 11:40 PM #4
PussayPatrol
I'm a neat monster...
Originally posted by Blackstorm View Post
How in the world does this look like a tutorial to you? lolol

He showed how to put them into the patch... Gaspkay:
01-15-2012, 12:23 AM #5
I like this looks cool going to try it later thanks
01-15-2012, 06:14 AM #6
Blackstorm
Veni. Vidi. Vici.
Originally posted by PussayPatrol View Post
He showed how to put them into the patch... Gaspkay:



Fair enough. :alpaca1:
01-15-2012, 06:32 AM #7
PussayPatrol
I'm a neat monster...
Originally posted by Blackstorm View Post
Fair enough. :alpaca1:


:fa::love::hug::happycry::hug::love::fa:

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo