Add CGunWeapon

Former-commit-id: edbfd0d305
This commit is contained in:
Henrique Gemignani Passos Lima
2022-11-25 14:41:28 +02:00
parent 0bc3ad810b
commit c7250e132f
38 changed files with 1099 additions and 175 deletions

View File

@@ -14,6 +14,13 @@ public:
typedef CAssetId ResId;
typedef CPlayerState::EBeamId EBeamId;
struct WeaponResourcePair {
ResId a;
ResId b;
ResId c;
ResId* d;
};
~CTweakGunRes() override;
ResId x4_gunMotion;
@@ -43,6 +50,14 @@ public:
ResId xbc_grappleHit;
ResId xc0_grappleMuzzle;
ResId xc4_grappleSwoosh;
const WeaponResourcePair* GetWeaponResourcePair(int beam) const; /* {
const int b = int(beam);
if (b < 0 || b > 4) {
return x34_weapons[0];
}
return x34_weapons[b];
}*/
};
extern CTweakGunRes* gpTweakGunRes;