You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
764 B
28 lines
764 B
if global.ingame
|
|
{
|
|
if (delay > 0)
|
|
delay -= 1
|
|
else
|
|
shaking = 1
|
|
if shaking
|
|
{
|
|
if (global.classicmode == 0)
|
|
{
|
|
view_xport[0] = round(random(intensity))
|
|
view_yport[0] = round(random(intensity))
|
|
oControl.xShake = round(random(intensity))
|
|
oControl.yShake = round(random(intensity))
|
|
}
|
|
if (global.classicmode == 1)
|
|
{
|
|
view_xport[0] = (80 + round(random(intensity)))
|
|
view_yport[0] = (40 + round(random(intensity)))
|
|
oControl.xShake = (80 + round(random(intensity)))
|
|
oControl.yShake = (40 + round(random(intensity)))
|
|
}
|
|
duration -= 1
|
|
if (duration <= 0)
|
|
event_user(0)
|
|
}
|
|
}
|