1.3 update and whatnot.

This commit is contained in:
Marisa the Magician 2023-08-25 23:47:10 +02:00
commit 2f56442ffb
47 changed files with 153 additions and 178 deletions

View file

@ -48,9 +48,7 @@ Class Bonesaw : UnrealWeapon
FTranslatedLineTarget t;
double slope = AimLineAttack(angle,DEFMELEERANGE,t,0.,ALF_CHECK3D);
FLineTraceData d;
Vector3 x, y, z, origin;
[x, y, z] = dt_Utility.GetAxes(angle,pitch,roll);
origin = level.Vec3Offset(Vec2OffsetZ(0,0,player.viewz),z*4);
Vector3 origin = dt_Utility.GetFireOffset(self,0,0,4);
LineTrace(angle,DEFMELEERANGE,slope,TRF_ABSPOSITION,origin.z,origin.x,origin.y,data:d);
if ( d.HitType != TRACE_HitNone )
{
@ -90,8 +88,8 @@ Class Bonesaw : UnrealWeapon
{
invoker.special1++;
Vector3 x, y, z, origin;
[x, y, z] = dt_Utility.GetAxes(angle,pitch,roll);
origin = level.Vec3Offset(Vec2OffsetZ(0,0,player.viewz),x*15-z*4);
[x, y, z] = dt_Utility.GetPlayerAxes(self);
origin = dt_Utility.GetFireOffset(self,15,0,-4);
if ( waterlevel >= 3 )
{
UTMainHandler.DoKnockback(self,x,5000);
@ -113,8 +111,8 @@ Class Bonesaw : UnrealWeapon
invoker.FireEffect();
A_AlertMonsters();
Vector3 x, y, z, origin;
[x, y, z] = dt_Utility.GetAxes(angle,pitch,roll);
origin = level.Vec3Offset(Vec2OffsetZ(0,0,player.viewz),x*15-z*4);
[x, y, z] = dt_Utility.GetPlayerAxes(self);
origin = dt_Utility.GetFireOffset(self,15,0,-4);
if ( waterlevel >= 3 )
{
UTMainHandler.DoKnockback(self,x,20000);