2016-10-13 18:45:52 +00:00
|
|
|
class PlayerPawn : Actor native
|
|
|
|
{
|
|
|
|
Default
|
|
|
|
{
|
|
|
|
Health 100;
|
|
|
|
Radius 16;
|
|
|
|
Height 56;
|
|
|
|
Mass 100;
|
|
|
|
Painchance 255;
|
|
|
|
Speed 1;
|
|
|
|
+SOLID
|
|
|
|
+SHOOTABLE
|
|
|
|
+DROPOFF
|
|
|
|
+PICKUP
|
|
|
|
+NOTDMATCH
|
|
|
|
+FRIENDLY
|
|
|
|
+SLIDESONWALLS
|
|
|
|
+CANPASS
|
|
|
|
+CANPUSHWALLS
|
|
|
|
+FLOORCLIP
|
|
|
|
+WINDTHRUST
|
|
|
|
+TELESTOMP
|
|
|
|
+NOBLOCKMONST
|
|
|
|
Player.AttackZOffset 8;
|
|
|
|
Player.JumpZ 8;
|
|
|
|
Player.GruntSpeed 12;
|
|
|
|
Player.FallingScreamSpeed 35,40;
|
|
|
|
Player.ViewHeight 41;
|
|
|
|
Player.UseRange 64;
|
|
|
|
Player.ForwardMove 1,1;
|
|
|
|
Player.SideMove 1,1;
|
|
|
|
Player.ColorRange 0,0;
|
|
|
|
Player.SoundClass "player";
|
|
|
|
Player.DamageScreenColor "ff 00 00";
|
|
|
|
Player.MugShotMaxHealth 0;
|
|
|
|
Player.FlechetteType "ArtiPoisonBag3";
|
|
|
|
Player.AirCapacity 1;
|
2016-10-21 17:31:08 +00:00
|
|
|
Player.ViewBob 1;
|
2016-10-13 18:45:52 +00:00
|
|
|
Obituary "$OB_MPDEFAULT";
|
|
|
|
}
|
2016-11-19 12:56:29 +00:00
|
|
|
|
|
|
|
virtual void PlayAttacking ()
|
|
|
|
{
|
|
|
|
if (MissileState != null) SetState (MissileState);
|
|
|
|
}
|
|
|
|
|
|
|
|
virtual void PlayAttacking2 ()
|
|
|
|
{
|
|
|
|
if (MeleeState != null) SetState (MeleeState);
|
|
|
|
}
|
|
|
|
|
2016-11-22 11:21:55 +00:00
|
|
|
virtual void MorphPlayerThink()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2016-10-13 18:45:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
class PlayerChunk : PlayerPawn native
|
|
|
|
{
|
|
|
|
Default
|
|
|
|
{
|
|
|
|
+NOSKIN
|
|
|
|
-SOLID
|
|
|
|
-SHOOTABLE
|
|
|
|
-PICKUP
|
|
|
|
-NOTDMATCH
|
|
|
|
-FRIENDLY
|
|
|
|
-SLIDESONWALLS
|
|
|
|
-CANPUSHWALLS
|
|
|
|
-FLOORCLIP
|
|
|
|
-WINDTHRUST
|
|
|
|
-TELESTOMP
|
|
|
|
}
|
|
|
|
}
|
2016-11-19 12:56:29 +00:00
|
|
|
|
|
|
|
class PSprite : Object native
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
struct Player native
|
|
|
|
{
|
|
|
|
native void SetPsprite(int id, State stat, bool pending = false);
|
2016-11-19 15:39:45 +00:00
|
|
|
native void SetSafeFlash(Weapon weap, State flashstate, int index);
|
|
|
|
native PSprite GetPSprite(int id);
|
2016-11-22 11:21:55 +00:00
|
|
|
native PSprite FindPSprite(int id);
|
|
|
|
}
|