mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-20 21:33:40 -07:00
Enhancement: MM-Style Static Explosion Radius (#2322)
* Adds Static Explosion Radius Enhancement
* Changed default value
* Update libultraship
* Update CVar Syntax
* Revert "Update libultraship"
This reverts commit d0e243565a
.
This commit is contained in:
parent
a58705eaf4
commit
643a98244b
3 changed files with 10 additions and 2 deletions
|
@ -177,7 +177,12 @@ void EnBom_Explode(EnBom* this, PlayState* play) {
|
|||
func_800AA000(this->actor.xzDistToPlayer, 0xFF, 0x14, 0x96);
|
||||
}
|
||||
|
||||
this->explosionCollider.elements[0].dim.worldSphere.radius += this->actor.shape.rot.z + 8;
|
||||
if (CVarGetInteger("gStaticExplosionRadius", 0)) {
|
||||
this->explosionCollider.elements[0].dim.worldSphere.radius = 40;
|
||||
} else {
|
||||
this->explosionCollider.elements[0].dim.worldSphere.radius += this->actor.shape.rot.z + 8;
|
||||
}
|
||||
|
||||
|
||||
if (this->actor.params == BOMB_EXPLOSION) {
|
||||
CollisionCheck_SetAT(play, &play->colChkCtx, &this->explosionCollider.base);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue