Create FPS Test minigame with other shit

This commit is contained in:
Keenan Turley
2023-08-03 21:32:33 -07:00
parent bdb25fd3ce
commit 97a2442d03
15 changed files with 758 additions and 13 deletions

View File

@@ -0,0 +1,22 @@
using Sandbox;
namespace LuckerGame.Minigames.FpsTest.Weapons;
public partial class WeaponViewModel : BaseViewModel
{
protected FpsWeapon FpsWeapon { get; init; }
public WeaponViewModel( FpsWeapon fpsWeapon )
{
FpsWeapon = fpsWeapon;
EnableShadowCasting = false;
EnableViewmodelRendering = true;
}
public override void PlaceViewmodel()
{
base.PlaceViewmodel();
Camera.Main.SetViewModelCamera( 80f, 1, 500 );
}
}