From 377ad7df2409e1f3fb522937ee08a5351c36c4bc Mon Sep 17 00:00:00 2001 From: Treeki Date: Tue, 7 May 2013 23:38:39 +0200 Subject: shyguy hitboxes improved --- src/shyguy.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/shyguy.cpp b/src/shyguy.cpp index 8f6d6f3..27c0d70 100644 --- a/src/shyguy.cpp +++ b/src/shyguy.cpp @@ -591,10 +591,16 @@ int daShyGuy::onCreate() { ActivePhysics::Info HitMeBaby; + // Note: if this gets changed, also change the point where the default + // values are assigned after de-ballooning HitMeBaby.xDistToCenter = 0.0; HitMeBaby.yDistToCenter = 12.0; - HitMeBaby.xDistToEdge = 10.0; - HitMeBaby.yDistToEdge = 12.0; + HitMeBaby.xDistToEdge = 8.0; + HitMeBaby.yDistToEdge = 12.0; + if (renderBalloon) { + HitMeBaby.yDistToCenter = 9.0f; + HitMeBaby.yDistToEdge = 9.0f; + } HitMeBaby.category1 = 0x3; HitMeBaby.category2 = 0x0; @@ -1331,6 +1337,9 @@ void daShyGuy::updateModelMatrices() { if (speed.y == 0.0) { SpawnEffect("Wm_en_sndlandsmk_s", 0, &(Vec){this->pos.x, this->pos.y, 0}, &(S16Vec){0,0,0}, &(Vec){1.0, 1.0, 1.0}); doStateChange(&StateID_GoDizzy); + + aPhysics.info.yDistToCenter = 12.0f; + aPhysics.info.yDistToEdge = 12.0f; } } void daShyGuy::endState_BalloonDrop() { -- cgit v1.2.3