Raised This Month: $ Target: $400
 0% 

Shockwaves


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BigDontCry
Member
Join Date: Nov 2007
Location: Sweden
Old 11-17-2007 , 15:32   Shockwaves
Reply With Quote #1

Hi...

On http://www.amxmodx.org/funcwiki.php?go=func&id=262 it says; "You may generate menu, smoke, shockwaves, thunderlights, intermission and many many others messages."

And this link: http://wiki.alliedmods.net/Temp_Enti...Half-Life_1%29 doesn't show an example of how to create a shockwave effect...

Can anyone show me an example of that? Thanks
__________________
Big Men Don't Cry

Quote:
[20:23] [email protected]: I don't know how
[20:23] [email protected]: I'm only 15
[20:23] [email protected]: I don't know anything
BigDontCry is offline
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 11-17-2007 , 16:10   Re: Shockwaves
Reply With Quote #2

PHP Code:
new g_shockwave;

public 
plugin_precache()
{
    
g_shockwave precache_model("sprites/shockwave.spr");
}

stock shockwave(origin[3], radiusrgb)
{
    
message_begin(MSG_BROADCASTSVC_TEMPENTITY);
    
write_byte(21);
    
write_coord(origin[0]);
    
write_coord(origin[1]);
    
write_coord(origin[2]);
    
write_coord(origin[0]);
    
write_coord(origin[1]);
    
write_coord(origin[2] + radius);
    
write_short(g_shockwave);
    
write_byte(0); // startframe
    
write_byte(0); // framerate in 0.1's
    
write_byte(2); // life
    
write_byte(64); // width
    
write_byte(255); // noise
    
write_byte(r); // red
    
write_byte(g); // green
    
write_byte(b); // blue
    
write_byte(255); //bright
    
write_byte(0); //scrollspeed
    
message_end();

hlstriker is offline
BigDontCry
Member
Join Date: Nov 2007
Location: Sweden
Old 11-17-2007 , 16:17   Re: Shockwaves
Reply With Quote #3

Thanks alot!
__________________
Big Men Don't Cry

Quote:
[20:23] [email protected]: I don't know how
[20:23] [email protected]: I'm only 15
[20:23] [email protected]: I don't know anything
BigDontCry is offline
BigDontCry
Member
Join Date: Nov 2007
Location: Sweden
Old 11-17-2007 , 16:24   Re: Shockwaves
Reply With Quote #4

While I'm at it... Can you show some more examples that's not in the wiki?
__________________
Big Men Don't Cry

Quote:
[20:23] [email protected]: I don't know how
[20:23] [email protected]: I'm only 15
[20:23] [email protected]: I don't know anything
BigDontCry is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 11-17-2007 , 17:27   Re: Shockwaves
Reply With Quote #5

Take a look in amxmodx/scripting/include -> "message_const.inc"

Code:
#define TE_BEAMCYLINDER             21       // Cylinder that expands to max radius over lifetime
hlstriker maked a beamcylinder with a shockwave sprite ...
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 11-17-2007 , 18:28   Re: Shockwaves
Reply With Quote #6

Yeah, I think I got that code from a plugin somewhere (can't remember). It creates the concussion effect like in TFC.
hlstriker is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:16.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode