aboutsummaryrefslogtreecommitdiffstats
path: root/code/pawn
diff options
context:
space:
mode:
authorLeonardo Bishop <me@leonardobishop.com>2023-08-01 02:42:46 +0100
committerLeonardo Bishop <me@leonardobishop.com>2023-08-01 02:42:46 +0100
commitb17d3c797717a0bce602f45c49681a64c7f5b6b3 (patch)
tree4c7eb0fda0714193bc11a8dbab58910a01a36c4e /code/pawn
parentbed59600218925420eea0e287abb233be60b13ae (diff)
Add temporary fixed clothing
Skeleton & zombie avatars have busted hitbxes so I've enforced a fixed outfit.
Diffstat (limited to 'code/pawn')
-rw-r--r--code/pawn/Player.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/code/pawn/Player.cs b/code/pawn/Player.cs
index 7254023..3d92008 100644
--- a/code/pawn/Player.cs
+++ b/code/pawn/Player.cs
@@ -169,6 +169,16 @@ public partial class Player : AnimatedEntity
PlayerClothingContainer.LoadFromClient( cl );
PlayerClothingContainer.DressEntity( this );
}
+
+ public void Dress()
+ {
+ PlayerClothingContainer = new ClothingContainer();
+ var trousers = new Clothing() { Model = "models/citizen_clothes/trousers/cargopants/models/cargo_pants.vmdl" };
+ var tshirt = new Clothing() { Model = "models/citizen_clothes/shirt/Tshirt/Models/tshirt.vmdl" };
+ PlayerClothingContainer.Clothing.Add( trousers );
+ PlayerClothingContainer.Clothing.Add( tshirt );
+ PlayerClothingContainer.DressEntity( this );
+ }
public override void Simulate( IClient cl )
{