Ok i'm trying to do this screen shake thing and i saw looked at the fade thing that someone made and i came on the conclusion is this is right.
I looked at
http://developer.valvesoftware.com/wiki/Env_shake and i added the right values for the amplitude and the other one but i don't see any movement in my screen, i don't get any error either. I thought i did the right write byte and floats
However i don't get it to work. Can someone take a look at this and tell me whats wrong cuz i'm lost.
Thanks!
Code:
#define Start_Shake 0x0001;
public Shake(amplitude,duration,frequency)
{
new Handle:hBf=StartMessageAll("Shake");
if(hBf!=INVALID_HANDLE)
{
BfWriteByte(hBf, Start_Shake);
BfWriteFloat(hBf,amplitude);
BfWriteFloat(hBf,duration);
BfWriteFloat(hBf,frequency);
EndMessage();
}
}
__________________