Skip to content

Commit

Permalink
fix returning rcs when depleted
Browse files Browse the repository at this point in the history
  • Loading branch information
sotakoira committed Nov 4, 2022
1 parent d5ab969 commit 888268c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/kotlin/rat/poison/scripts/RCS.kt
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
package rat.poison.scripts

import com.badlogic.gdx.math.Vector2
import com.badlogic.gdx.math.Vector3
import rat.poison.curSettings
import rat.poison.game.angle
import rat.poison.game.clientState
import rat.poison.game.entity.bullets
import rat.poison.game.entity.punch
import rat.poison.game.entity.shotsFired
import rat.poison.game.me
import rat.poison.game.setAngle
import rat.poison.scripts.aim.meCurWep
import rat.poison.scripts.aim.meCurWepEnt
import rat.poison.scripts.aim.meDead
import rat.poison.utils.every
import rat.poison.utils.generalUtil.strToBool
Expand All @@ -26,7 +27,7 @@ fun rcs() = every(4, inGameCheck = true) {
val shotsFired = me.shotsFired()
val p = me.punch()

val forceSet = (shotsFired == 0 && !lastAppliedRCS.isZero)
val forceSet = (shotsFired == 0 && !lastAppliedRCS.isZero || meCurWepEnt.bullets() <= 0)

if (forceSet || /*!finishPunch ||*/ shotsFired > 1) {
if (lastAppliedRCS.isZero) {
Expand Down

0 comments on commit 888268c

Please sign in to comment.