mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-22 01:01:45 +00:00
Scale Ideyas when moving to/from NIGHTSDRONE and scaling changes to NIGHTSDRONE
This commit is contained in:
parent
9bc9f96e09
commit
aecabb246d
2 changed files with 11 additions and 1 deletions
|
@ -801,11 +801,14 @@ void P_TouchSpecialThing(mobj_t *special, mobj_t *toucher, boolean heightcheck)
|
||||||
{
|
{
|
||||||
mobj_t *orbittarget = special->target ? special->target : special;
|
mobj_t *orbittarget = special->target ? special->target : special;
|
||||||
mobj_t *hnext = orbittarget->hnext;
|
mobj_t *hnext = orbittarget->hnext;
|
||||||
|
|
||||||
P_SetTarget(&orbittarget->hnext, toucher->tracer);
|
P_SetTarget(&orbittarget->hnext, toucher->tracer);
|
||||||
P_SetTarget(&orbittarget->hnext->hnext, hnext); // Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo.
|
P_SetTarget(&orbittarget->hnext->hnext, hnext); // Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo.
|
||||||
P_SetTarget(&orbittarget->hnext->target, orbittarget); // goalpost
|
P_SetTarget(&orbittarget->hnext->target, orbittarget); // goalpost
|
||||||
P_SetTarget(&toucher->tracer, NULL);
|
P_SetTarget(&toucher->tracer, NULL);
|
||||||
|
|
||||||
|
orbittarget->hnext->destscale = orbittarget->destscale;
|
||||||
|
|
||||||
if (hnext)
|
if (hnext)
|
||||||
{
|
{
|
||||||
orbittarget->hnext->extravalue1 = (angle_t)(hnext->extravalue1 - 72*ANG1);
|
orbittarget->hnext->extravalue1 = (angle_t)(hnext->extravalue1 - 72*ANG1);
|
||||||
|
|
|
@ -7882,8 +7882,15 @@ void P_MobjThinker(mobj_t *mobj)
|
||||||
|| goalpost->movefactor != mobj->z
|
|| goalpost->movefactor != mobj->z
|
||||||
|| flipchanged
|
|| flipchanged
|
||||||
|| goalpost->threshold != (mobj->flags & (MF_SLIDEME | MF_GRENADEBOUNCE)))
|
|| goalpost->threshold != (mobj->flags & (MF_SLIDEME | MF_GRENADEBOUNCE)))
|
||||||
|
{
|
||||||
|
if (goalpost->destscale != mobj->destscale)
|
||||||
{
|
{
|
||||||
goalpost->destscale = sparkle->destscale = droneman->destscale = mobj->destscale;
|
goalpost->destscale = sparkle->destscale = droneman->destscale = mobj->destscale;
|
||||||
|
// get the orbiting ideyas and scale them too
|
||||||
|
mobj_t *hnext = goalpost;
|
||||||
|
while ((hnext = hnext->hnext))
|
||||||
|
hnext->destscale = mobj->destscale;
|
||||||
|
}
|
||||||
|
|
||||||
// straight copy-pasta from P_SpawnMapThing, case MT_NIGHTSDRONE
|
// straight copy-pasta from P_SpawnMapThing, case MT_NIGHTSDRONE
|
||||||
if (!flip)
|
if (!flip)
|
||||||
|
|
Loading…
Reference in a new issue