mirror of
https://github.com/HarbourMasters/Starship
synced 2026-06-24 01:51:28 -04:00
Add specific charge button option
This commit is contained in:
committed by
Alejandro Asenjo Nitti
parent
76dab3e20d
commit
0deeddf8cb
+12
-1
@@ -3325,7 +3325,18 @@ bool Player_UpdateLockOn(Player* player) {
|
||||
s32 i;
|
||||
|
||||
bool rapidFire = CVarGetInteger("gRapidFire", 0) == 1;
|
||||
if (rapidFire ? !(gInputHold->button & A_BUTTON) : (gInputHold->button & A_BUTTON)) {
|
||||
bool charging;
|
||||
if (rapidFire) {
|
||||
if (CVarGetInteger("gLtoCharge", 0) == 1) {
|
||||
charging = (gInputHold->button & L_TRIG) && !(gInputHold->button & A_BUTTON);
|
||||
}
|
||||
else {
|
||||
charging = !(gInputHold->button & A_BUTTON);
|
||||
}
|
||||
} else {
|
||||
charging = (gInputHold->button & A_BUTTON);
|
||||
}
|
||||
if (charging) {
|
||||
gChargeTimers[player->num]++;
|
||||
if (gChargeTimers[player->num] > 21) {
|
||||
gChargeTimers[player->num] = 21;
|
||||
|
||||
Reference in New Issue
Block a user