AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Effects (https://forums.alliedmods.net/showthread.php?t=117412)

benamo6 01-31-2010 21:09

Effects
 
I have some questions about effects.
1. How could I remove the "Drug" effect from amx_drug?
Here is the code:
PHP Code:

new gmsg_SetFOV get_user_msgid("SetFOV")

message_beginMSG_ONEgmsg_SetFOV, { 00}, id )
        
write_byte180 )
        
message_end( ) 

2. How could I make a "Crazy" effect? I was thinking in screen shake, but I dont know how to make it permanent, it go away after some seconds.
PHP Code:

new g_MsgScreenShake

g_MsgScreenShake 
get_user_msgid("ScreenShake")

                
message_begin(MSG_ONE_UNRELIABLEg_MsgScreenShake_id)
                
write_short255<<14 )
                
write_short255<<14 )
                
write_short255<<14 )
                
message_end(); 


ConnorMcLeod 02-01-2010 00:20

Re: Effects
 
1. Don't use that message, use offset m_iFOV (363) and set it to 90 or 0 (0 will make it back to default weapon fov = 90.


Quote:

Originally Posted by benamo6 (Post 1074634)
how to make it permanent, it go away after some seconds.

gni ?

benamo6 02-01-2010 00:53

Re: Effects
 
I got this effect from GHW_DISCO it should change player screen to random fade colors, but it just set it to one random color at start and it stay like that.
PHP Code:

new num1 random_num(0,255)
        new 
num2 random_num(0,255)
        new 
num3 random_num(0,255)
        new 
alpha random_num(40,65)
        
message_begin(MSG_ONE,get_user_msgid("ScreenFade"),{0,0,0},id)
        
write_short(~0)
        
write_short(~0)
        
write_short(1<<12)
        
write_byte(num1)
        
write_byte(num2)
        
write_byte(num3)
        
write_byte(alpha)
        
message_end() 


mininova 02-01-2010 22:57

Re: Effects
 
im interested in this too could some one give an answer

ConnorMcLeod 02-02-2010 00:53

Re: Effects
 
You come with 2 different questions in your thread, and in your first reply, again a new completly different one... You would have needed 3 threads.

benamo6 02-02-2010 00:55

Re: Effects
 
Sorry connor, Im going to make a new thread.

ConnorMcLeod 02-02-2010 00:58

Re: Effects
 
I personnally don't care, but think of people who try to make some search on the forum. That's also why titles are important.


All times are GMT -4. The time now is 07:18.

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