Post: [CODE] Emp effect/spawn?
03-07-2011, 08:19 AM #1
xQuZe-
You talkin to me?
(adsbygoogle = window.adsbygoogle || []).push({}); I found this while i was looking in the gsc's.
I haven't tested this cause my mw2 on pc stopped working, so please someone confirm this?

Edit:
..V.. Already made this. All credz to him.

    level._effect[ "emp_flash" ] = loadfx( "explosions/emp_flash_mp" ); playfx(level._effect[ "emp_flash" ], SPLOSIONlocation); RadiusDamage( SPLOSIONlocation, 0, 0, 0, self ); earthquake (0.3, 1, SPLOSIONlocation, 1000000); self playsound( "nuke_explosion" ); self playsound( "nuke_wave" ); 
(adsbygoogle = window.adsbygoogle || []).push({});
03-07-2011, 06:04 PM #2
Originally posted by xQuZe
I found this while i was looking in the gsc's.
I haven't tested this cause my mw2 on pc stopped working, so please someone confirm this?

This is the original.
    empEffects()
{
foreach( player in level.players )
{
playerForward = anglestoforward( player.angles );
playerForward = ( playerForward[0], playerForward[1], 0 );
playerForward = VectorNormalize( playerForward );

empDistance = 20000;

empEnt = Spawn( "script_model", player.origin + ( 0, 0, 8000 ) + Vector_Multiply( playerForward, empDistance ) );
empEnt setModel( "tag_origin" );
empEnt.angles = empEnt.angles + ( 270, 0, 0 );
empEnt thread empEffect( player );
}
}


I think you need this one to. Smile
    empEffect( player )
{
player endon( "disconnect" );

wait( 0.5 );
PlayFXOnTagForClients( level._effect[ "emp_flash" ], self, "tag_origin", player );
}

So let's change the height (8000) to 20? It might spawn on the ground now.
    empEffects()
{
foreach( player in level.players )
{
playerForward = anglestoforward( player.angles );
playerForward = ( playerForward[0], playerForward[1], 0 );
playerForward = VectorNormalize( playerForward );

empDistance = 20000;

empEnt = Spawn( "script_model", player.origin + ( 0, 0, 20 ) + Vector_Multiply( playerForward, empDistance ) );
empEnt setModel( "tag_origin" );
empEnt.angles = empEnt.angles + ( 270, 0, 0 );
empEnt thread empEffect( player );
}
}


and some other codes:
    playLocalSound( "emp_activate" );
thread teamPlayerCardSplash( "used_emp", self );
level._effect[ "emp_flash" ] = loadfx( "explosions/emp_flash_mp" );


I don't know, just try it. Play around with it. Have fun with it. Smile


I used to have a really nice emp effect that i shot into the sky, it gave a halo effect. It was in one of my old patches but I deleted them from my pc now...
03-07-2011, 06:33 PM #3
xQuZe-
You talkin to me?
Originally posted by ..V.. View Post
I used to have a really nice emp effect that i shot into the sky, it gave a halo effect. It was in one of my old patches but I deleted them from my pc now...


Ohh thats cool :P
03-07-2011, 08:36 PM #4
Cody_h4x
Nobody is like me
Lol thatd be sexy :y:
03-08-2011, 12:12 AM #5
Blackstorm
Veni. Vidi. Vici.
Originally posted by ..V.. View Post
I used to have a really nice emp effect that i shot into the sky, it gave a halo effect. It was in one of my old patches but I deleted them from my pc now...


lol

emp = loadfx emp/explosion

or something along those lines =D
03-08-2011, 12:19 AM #6
Originally posted by .Blackstorm View Post
lol

emp = loadfx emp/explosion

or something along those lines =D


level._effect[ "emp_flash" ] = loadfx( "explosions/emp_flash_mp" ); playfx(level._effect[ "emp_flash" ], SPLOSIONlocation); RadiusDamage( SPLOSIONlocation, 0, 0, 0, self ); earthquake (0.3, 1, SPLOSIONlocation, 1000000); self playsound( "nuke_explosion" ); self playsound( "nuke_wave" );

Shoot it at the sky, it looks really cool...
03-08-2011, 12:21 AM #7
Blackstorm
Veni. Vidi. Vici.
Originally posted by ..V.. View Post
level._effect[ "emp_flash" ] = loadfx( "explosions/emp_flash_mp" ); playfx(level._effect[ "emp_flash" ], SPLOSIONlocation); RadiusDamage( SPLOSIONlocation, 0, 0, 0, self ); earthquake (0.3, 1, SPLOSIONlocation, 1000000); self playsound( "nuke_explosion" ); self playsound( "nuke_wave" );

Shoot it at the sky, it looks really cool...

I know I made something similar to that remember? =D Why do you have radius damage if there's no damage being set? lol You'd be better off just taking it out :P
03-08-2011, 12:22 AM #8
Originally posted by .Blackstorm View Post
I know I made something similar to that remember? =D Why do you have radius damage if there's no damage being set? lol You'd be better off just taking it out :P


Because I just change things as I go and leave them there..**** all that "optimiztaion" bullshit.. :sleep:
03-08-2011, 12:24 AM #9
Blackstorm
Veni. Vidi. Vici.
Originally posted by ..V.. View Post
Because I just change things as I go and leave them there..**** all that "optimiztaion" bullshit.. :sleep:


lol Agree 100% =D

Anyways, mind taking a look at this thread? =D

You must login or register to view this content.
03-08-2011, 12:27 AM #10
Originally posted by .Blackstorm View Post
lol Agree 100% =D

Anyways, mind taking a look at this thread? =D

You must login or register to view this content.


I looked already... I have nothing to add to it Im afraid.. I hardly ever go on PS3 nowadays anyway so Im not bothered about the new patch..

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo