aboutsummaryrefslogtreecommitdiffstats
path: root/code/weapon/Weapon.cs
diff options
context:
space:
mode:
authorLeonardo Bishop <me@leonardobishop.com>2023-08-01 18:21:08 +0100
committerLeonardo Bishop <me@leonardobishop.com>2023-08-01 18:21:08 +0100
commitb393d1abacc880b9d94d4ce5d48ae39fbe417ad5 (patch)
treecc17f4e1a6045818306d0f8af92a0f061a21b7ff /code/weapon/Weapon.cs
parent20269f671e4a2a2cdec449bad01099260b7eba06 (diff)
Add animations to knife
Diffstat (limited to 'code/weapon/Weapon.cs')
-rw-r--r--code/weapon/Weapon.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/code/weapon/Weapon.cs b/code/weapon/Weapon.cs
index 6d6fc20..8eafbc3 100644
--- a/code/weapon/Weapon.cs
+++ b/code/weapon/Weapon.cs
@@ -171,7 +171,7 @@ public partial class Weapon : AnimatedEntity
var pos = ray.Position;
bool hit = false;
- foreach (var tr in TraceBullet(pos, pos + forward * 50, 20))
+ foreach (var tr in TraceBullet(pos, pos + forward * 80, 20))
{
tr.Surface.DoBulletImpact(tr);
hit = true;
@@ -202,6 +202,7 @@ public partial class Weapon : AnimatedEntity
vm.Model = Model.Load( ViewModelPath );
vm.Owner = Owner;
vm.Parent = Game.LocalPawn;
+ vm.SetAnimParameter( "deploy", true );
ViewModelEntity = vm;
if (!string.IsNullOrEmpty(HandsModelPath))
{