got racers animated and racing

This commit is contained in:
mccarreon
2023-08-06 21:12:28 -07:00
parent 3e9d64cb00
commit bce1f8e1f7
10 changed files with 132 additions and 41 deletions

View File

@@ -3,7 +3,7 @@ using System;
namespace LuckerGame.Components.Pawn;
public class PawnAnimator : EntityComponent<Entities.Pawn>, ISingletonComponent
public class PawnAnimator : EntityComponent<Entities.Racer>, ISingletonComponent
{
public void Simulate()
{

View File

@@ -5,7 +5,7 @@ using Sandbox;
namespace LuckerGame.Components.Pawn;
public partial class PawnInventory : EntityComponent<Entities.Pawn>
public partial class PawnInventory : EntityComponent<Entities.Racer>
{
[Net] private List<Weapon> Weapons { get; set; } = new List<Weapon>();
[Net, Predicted] public Weapon ActiveWeapon { get; private set; }

View File

@@ -4,7 +4,7 @@ using System.Collections.Generic;
namespace LuckerGame.Components.Pawn;
public class UserPawnController : EntityComponent<Entities.Pawn>
public class UserPawnController : EntityComponent<Entities.Racer>
{
public int StepSize => 24;
public int GroundAngle => 45;