You can simulate slow downs by using an 'opposite' boots script:
PHP Code:
//#CLIENTSIDE if (playertouchsme) { slowing = 10; timeout = 0.05; }
if (timeout) { if (slowing > 0) { for (i = 0; i < 4; i++) { if (keydown(i)) { playerx += vecx(i) * -0.5; playery += vecy(i) * -0.5; } } slowing -= 0.05; timeout = 0.05; } }
|
In GS1 you should always use this. variables when referring to weapon or NPC-local variables because of the way scope works on the older clients.
i.e. even a forloop with i as an iterator can cause issues if i is used elsewhere in any NPC. You should use this.i.