mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-05-03 23:42:07 +00:00
ring drain and stun
It wasn't actually that hard, I just don't do this kinda stuff
This commit is contained in:
parent
e2c4341896
commit
0829a25d58
1 changed files with 8 additions and 1 deletions
|
|
@ -297,6 +297,12 @@ struct Cloud : Mobj
|
||||||
|
|
||||||
bob_in_place(this, 8, 64);
|
bob_in_place(this, 8, 64);
|
||||||
voice_loop(sfx_s3kcfl);
|
voice_loop(sfx_s3kcfl);
|
||||||
|
|
||||||
|
if (leveltime % (TICRATE/3) == 0 && follow()->player->rings > -20) // toxomister ring drain
|
||||||
|
{
|
||||||
|
follow()->player->rings--;
|
||||||
|
S_StartSound(follow()->player->mo, sfx_antiri);
|
||||||
|
}
|
||||||
|
|
||||||
if (fuse < 3*TICRATE && leveltime % (1 + fuse / TICRATE) == 0)
|
if (fuse < 3*TICRATE && leveltime % (1 + fuse / TICRATE) == 0)
|
||||||
{
|
{
|
||||||
|
|
@ -308,6 +314,7 @@ struct Cloud : Mobj
|
||||||
K_SpawnAmps(target()->player, K_PvPAmpReward(2, target()->player, follow()->player), this);
|
K_SpawnAmps(target()->player, K_PvPAmpReward(2, target()->player, follow()->player), this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
follow()->player->stunned = fuse; // stunned as long as cloud is here
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -358,7 +365,7 @@ struct Cloud : Mobj
|
||||||
scale_to(destscale);
|
scale_to(destscale);
|
||||||
follow(toucher);
|
follow(toucher);
|
||||||
fuse = kMaxFuse;
|
fuse = kMaxFuse;
|
||||||
voice(sfx_s3ka0);
|
voice(sfx_s3k8a);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue