Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
44c4da6
feat: Implemented first iteration of the EntityList custom array type.
OrsellGit Dec 30, 2025
c73626b
fix: Tags were not bit shifted.
OrsellGit Dec 30, 2025
026bd35
tidy: Tidied how new EntityInfo structs are created and added another…
OrsellGit Dec 30, 2025
a75130c
feat: Added operator overloads for supporting foreach statements, exc…
OrsellGit Dec 30, 2025
5bf4b71
rename: Renamed EntityArray class file to the right name
OrsellGit Dec 30, 2025
7dc3691
docs: Bumped copyright year up
OrsellGit Dec 30, 2025
10d6f7c
feat: Added new sorting functions, that wont work, and added some mor…
OrsellGit Dec 30, 2025
8ba7abf
Merge branch 'dev' into feat/EntityList
OrsellGit Jan 6, 2026
b5dc6da
feat: Added find functions for EntityArray
OrsellGit Jan 8, 2026
d4b4eb4
feat: Added assert function
OrsellGit Jan 9, 2026
33d188a
fix: Trying to fix some compiling issues with EntityArray
OrsellGit Jan 9, 2026
f40a699
feat: Added assertion test and added logger test to tests/load_all.as
OrsellGit Jan 10, 2026
9bbc98a
feat: Added addAmt to add functions and changed returned arrays by fi…
OrsellGit Jan 11, 2026
112a267
lsp: Updated LSP dump from P2:CE and added launch.json for working wi…
OrsellGit Jan 17, 2026
da808c4
Merge branch 'dev' into feat/EntityList
OrsellGit Jan 17, 2026
af34c0e
fix: Just made "convar" "ConVar" in the comments
OrsellGit Jan 26, 2026
987a358
fix: Fixed some syntax issues that preventing compiling
OrsellGit Jan 26, 2026
5996b16
test: Added EntityArray tests, incomplete because not all functionali…
OrsellGit Jan 26, 2026
b90202c
feat: Switched to using logger for reporting messages, added more con…
OrsellGit Jan 26, 2026
06905fc
Merge branch 'dev' into feat/EntityList
OrsellGit Feb 3, 2026
a7ddf67
Merge branch 'dev' into feat/EntityList
OrsellGit Feb 3, 2026
2299cb7
lsp: Updated LSP with latest QA dump.
OrsellGit Feb 28, 2026
9adb898
fix: debugbreak() was removed
OrsellGit Mar 1, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions as.predefined
Original file line number Diff line number Diff line change
Expand Up @@ -1678,6 +1678,21 @@ class StorageScope{
void SetVector(const string&in key, const Vector&in value);
void SetString(const string&in key, const string&in value);
}
class EHandle<T>{
~EHandle();
EHandle(int&in);
EHandle(int&in, const T@ entity);
void opAssign(const EHandle<T>&in other);
void opHndlAssign(const EHandle<T>&in other);
void opHndlAssign(const T@ entity);
void Set(const T@ entity);
T@ Get() const;
T@ opImplCast() const;
bool opEquals(const EHandle<T>&in other) const;
bool opEquals(const T@ entity) const;
bool ChangedFrom(const T@ entity) const;
bool IsValid() const;
}
class trace_t{
~trace_t();
trace_t();
Expand Down Expand Up @@ -1873,6 +1888,10 @@ class CBaseEntity{
string GetDebugName();
int GetEntityIndex() const;
bool GetKeyValue(const string&in key, string&out value) const;
bool KeyValue(const string&in key, const string&in value);
bool KeyValue(const string&in key, float value);
bool KeyValue(const string&in key, int value);
bool KeyValue(const string&in key, const Vector&in value);
string GetModelName() const;
float GetElasticity() const;
void SetElasticity(float elasticity);
Expand All @@ -1895,6 +1914,14 @@ class CBaseEntity{
bool TestCollision(const Ray_t&in ray, uint mask, trace_t&out trace);
bool TestHitboxes(const Ray_t&in ray, uint mask, trace_t&out trace);
void ComputeWorldSpaceSurroundingBox(Vector&out mins, Vector&out maxs);
int GetSpawnFlags() const;
void AddSpawnFlags(int flags);
void RemoveSpawnFlags(int flags);
void ClearSpawnFlags();
bool HasSpawnFlags(int flags) const;
bool IsTrigger() const;
bool IsPlayer() const;
bool IsBaseCombatWeapon() const;
}
class InputData{
~InputData();
Expand All @@ -1911,35 +1938,53 @@ class CBaseEntityOutput{
class COutputVariant : CBaseEntityOutput{
COutputVariant();
void Fire(const Variant&in value, CBaseEntity@ activator, CBaseEntity@ caller);
void Init(const Variant&in value);
Variant Get() const;
}
class COutputInt : CBaseEntityOutput{
COutputInt();
void Fire(int value, CBaseEntity@ activator, CBaseEntity@ caller);
void Init(int value);
int Get() const;
}
class COutputFloat : CBaseEntityOutput{
COutputFloat();
void Fire(float value, CBaseEntity@ activator, CBaseEntity@ caller);
void Init(float value);
float Get() const;
}
class COutputString : CBaseEntityOutput{
COutputString();
void Fire(const string&in value, CBaseEntity@ activator, CBaseEntity@ caller);
void Init(const string&in value);
string Get() const;
}
class COutputEntity : CBaseEntityOutput{
COutputEntity();
void Fire(CBaseEntity@ value, CBaseEntity@ activator, CBaseEntity@ caller);
void Init(CBaseEntity@ value);
CBaseEntity@ Get() const;
}
class COutputVector : CBaseEntityOutput{
COutputVector();
void Fire(const Vector&in value, CBaseEntity@ activator, CBaseEntity@ caller);
void Fire(const QAngle&in value, CBaseEntity@ activator, CBaseEntity@ caller);
void Init(const QAngle&in value);
void Init(const Vector&in value);
void Get(QAngle&out value) const;
void Get(Vector&out value) const;
}
class COutputPosVector : CBaseEntityOutput{
COutputPosVector();
void Fire(const Vector&in value, CBaseEntity@ activator, CBaseEntity@ caller);
void Init(const Vector&in value);
void Get(Vector&out value) const;
}
class COutputColor : CBaseEntityOutput{
COutputColor();
void Fire(Color value, CBaseEntity@ activator, CBaseEntity@ caller);
void Init(Color value);
Color Get() const;
}
class COutputEvent : CBaseEntityOutput{
COutputEvent();
Expand Down Expand Up @@ -2405,6 +2450,8 @@ void VectorAngles(const Vector&in forward, QAngle&out angles);
void VectorAngles(const Vector&in forward, const Vector&in pseudoup, QAngle&out angles);
void VectorMatrix(const Vector&in forward, matrix3x4_t&out mat);
void VectorVectors(const Vector&in forward, Vector&out right, Vector&out up);
void AngleVectors(const QAngle&in angle, Vector&out forward, Vector&out right, Vector&out up);
void AngleVectors(const QAngle&in angle, Vector&out forward);
void SetIdentityMatrix(matrix3x4_t&out mat);
void SetScaleMatrix(float x, float y, float z, matrix3x4_t&out dst);
void MatrixBuildRotationAboutAxis(const Vector&in vAxisOfRot, float angleDegrees, matrix3x4_t&out dst);
Expand Down
Loading