Raised This Month: $ Target: $400
 0% 

Earthquake effect


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
hostingguy
Member
Join Date: Jan 2008
Old 01-14-2008 , 01:57   Earthquake effect
Reply With Quote #1

Hello,

I was wondering how to make an "earthquake" type effect

I was thinking something like this, but please fill in the gaps, I am very new at this and suck at the whole model/sprites/effects part of pawn coding

PHP Code:
 
new gmsgShake get_user_msgid "ScreenShake" );
new 
eq_Sprite precache_model "sprites/shockwave.spr" );
 
new 
origin[3];
get_user_originenemyorigin );
 
// random "earth shaking" - this part doesnt work or look right
message_begin MSG_PVSSVC_TEMPENTITYorigin );
write_byte TE_IMPLOSION );
write_coord origin[0] + random_num ( -100100 ) );
write_coord origin[1] + random_num ( -100100 ) );
write_coord origin[2] + random_num ( -5050 ) );
write_short eq_Sprite );
write_byte random_num 0,20 ) + 20 );
write_byte 12 );
write_byte TE_EXPLFLAG_NONE );
message_end ( );
 
 
//Then I do some code in between here
 
//to determine which players are near the targeted player
//and shake their screen like they were in earth quake
message_beginMSG_ONEgmsgShake, { 00}, targetid );
write_short255<< 14 ); 
write_short10 << 14 );
write_short255<< 14 );
message_end( ); 

Can anyone offer any advice?
hostingguy is offline
 



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 23:55.


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