mirror of
https://github.com/HarbourMasters/Shipwright
synced 2026-08-16 13:37:25 -04:00
Add enhancement for making nuts explode bombs, similar to bombchus (#1906)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user