Closed partiusfabaa closed 4 months ago
Thoughts on instead creating a method public void Teleport(Vector? position = null, QAngle? angles = null, Vector? velocity = null)
and then defaulting based on their null value, then the consumer just uses named args like .Teleport(position: x);
We should initialise the value of public static readonly Vector Zero
in Application.cs
or Bootstrap.cs
so that we do this safely at app startup (when we know natives are allowed to be called) rather than at usage time.
We should initialise the value of
public static readonly Vector Zero
inApplication.cs
orBootstrap.cs
so that we do this safely at app startup (when we know natives are allowed to be called) rather than at usage time.
this Zero
field will only be used by plugins and it will not be initialized until something accesses the class. I don't think it's worth it
Zero
field toVector
,QAngle
andAngle
. To prevent unnecessary allocations.Teleport
methods in case the user does not want to change angles or velocity.