23 lines
459 B
C#
23 lines
459 B
C#
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 );
|
|
}
|
|
}
|