aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--code/pawn/Player.cs10
-rw-r--r--code/phase/AssignPhase.cs4
2 files changed, 12 insertions, 2 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 )
{
diff --git a/code/phase/AssignPhase.cs b/code/phase/AssignPhase.cs
index f69ca7b..90a8000 100644
--- a/code/phase/AssignPhase.cs
+++ b/code/phase/AssignPhase.cs
@@ -92,8 +92,8 @@ public partial class AssignPhase : BasePhase
pawn.Team = Team.Spectator;
continue;
}
- pawn.DressFromClient( client );
-
+ pawn.Dress( );
+
// re-use names and colours if needed
if (natoNamesRemaining.Count == 0)
{