Create FPS Test minigame with other shit
This commit is contained in:
22
code/Minigames/FpsTest/Weapons/WeaponViewModel.cs
Normal file
22
code/Minigames/FpsTest/Weapons/WeaponViewModel.cs
Normal 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 );
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user