Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
emawind84 committed Mar 14, 2024
1 parent b63cd60 commit d69cd2a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/playsim/p_mobj.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7114,6 +7114,7 @@ AActor *P_SpawnPlayerMissile (AActor *source, double x, double y, double z,
P_PlaySpawnSound(MissileActor, source, !!(aimflags & ALF_ISOFFHAND) ? CHAN_OFFWEAPON : CHAN_WEAPON, CHANF_OVERLAP);
MissileActor->target = source;
MissileActor->Angles.Yaw = an;
MissileActor->Angles.Pitch = pitch;
if (MissileActor->flags3 & (MF3_FLOORHUGGER | MF3_CEILINGHUGGER))
{
MissileActor->VelFromAngle();
Expand Down
2 changes: 1 addition & 1 deletion wadsrc/static/zscript/actors/inventory/stateprovider.zs
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ class StateProvider : Inventory
Vector3 dir;
if (weapon.bOffhandWeapon)
{
dir = player.mo.OffhandDir(misl, misl.Angle + angle, misl.Pitch);
dir = player.mo.OffhandDir(misl, misl.Angle + (weapon.bNoAutoReverse ? 1. : -1.) * angle, misl.Pitch);
}
else
{
Expand Down
3 changes: 2 additions & 1 deletion wadsrc/static/zscript/actors/strife/weapongrenade.zs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class StrifeGrenadeLauncher : StrifeWeapon
if (weapon.bOffhandWeapon)
{
dir = player.mo.OffhandDir(self, Angle, pitch);
offsetDir = player.mo.OffhandDir(self, Angle + angleofs, pitch);
offsetDir = player.mo.OffhandDir(self, Angle + (weapon.bNoAutoReverse ? 1. : -1.) * angleofs, pitch);
zoffsetDir = player.mo.OffhandDir(self, Angle, pitch + 90);
}
else
Expand Down Expand Up @@ -140,6 +140,7 @@ class StrifeGrenadeLauncher : StrifeWeapon

grenade.Vel = gvel;
}
console.printf("x=%f, y=%f, z=%f", grenade.Vel.X, grenade.Vel.Y, grenade.Vel.Z);
}
}
}
Expand Down

0 comments on commit d69cd2a

Please sign in to comment.