mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-25 07:35:34 -07:00
Spicy dampe
This commit is contained in:
parent
3a5ef24396
commit
e8e8997fd8
1 changed files with 4 additions and 2 deletions
|
@ -189,12 +189,14 @@ void EnPoRelay_Race(EnPoRelay* this, PlayState* play) {
|
||||||
Vec3f vec;
|
Vec3f vec;
|
||||||
f32 speed;
|
f32 speed;
|
||||||
f32 multiplier;
|
f32 multiplier;
|
||||||
|
int16_t minFireTimer = 8.0f;
|
||||||
|
f32 chanceForFire = 1.0f;
|
||||||
|
|
||||||
if (this->actionTimer != 0) {
|
if (this->actionTimer != 0) {
|
||||||
this->actionTimer--;
|
this->actionTimer--;
|
||||||
}
|
}
|
||||||
if (this->actionTimer == 0 && Rand_ZeroOne() < 0.03f) {
|
if (this->actionTimer == 0 && Rand_ZeroOne() < chanceForFire) {
|
||||||
this->actionTimer = 32;
|
this->actionTimer = minFireTimer;
|
||||||
if (this->pathIndex < 23) {
|
if (this->pathIndex < 23) {
|
||||||
speed = Rand_ZeroOne() * 3.0f;
|
speed = Rand_ZeroOne() * 3.0f;
|
||||||
if (speed < 1.0f) {
|
if (speed < 1.0f) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue