mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-21 05:43:42 -07:00
Add enhancement for making nuts explode bombs, similar to bombchus (#1906)
This commit is contained in:
parent
6d10e6b9f8
commit
4396411d10
2 changed files with 5 additions and 0 deletions
|
@ -103,6 +103,9 @@ void EnBom_Init(Actor* thisx, GlobalContext* globalCtx) {
|
|||
Collider_SetCylinder(globalCtx, &this->bombCollider, thisx, &sCylinderInit);
|
||||
Collider_SetJntSph(globalCtx, &this->explosionCollider, thisx, &sJntSphInit, &this->explosionColliderItems[0]);
|
||||
this->explosionColliderItems[0].info.toucher.damage += (thisx->shape.rot.z & 0xFF00) >> 8;
|
||||
if (CVar_GetS32("gNutsExplodeBombs", 0)) {
|
||||
this->bombCollider.info.bumper.dmgFlags |= 1;
|
||||
}
|
||||
|
||||
thisx->shape.rot.z &= 0xFF;
|
||||
if (thisx->shape.rot.z & 0x80) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue