We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A generic player API needs to be provided so we can create health, suit and other HUD elements.
float GetHealth()
float GetMaxHealth()
int GetTeamIndex()
string GetVehicle()
PlayerDamanged(int newHealth, int prevHealth, int dmgBits) PlayerHealed(int newHealth, int prevHealth)
PlayerDamanged(int newHealth, int prevHealth, int dmgBits)
PlayerHealed(int newHealth, int prevHealth)
PlayerKilled() PlayerSpawn()
PlayerKilled()
PlayerSpawn()
PlayerSwitchedTeam(int newTeam, int oldTeam)
PlayerEnteredVehicle(string vehicleClass) PlayerExitedVehicle(string vehicleClass)
PlayerEnteredVehicle(string vehicleClass)
PlayerExitedVehicle(string vehicleClass)
Expose damage bits as enum
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Motivation
A generic player API needs to be provided so we can create health, suit and other HUD elements.
API
float GetHealth()
- Returns the current health of the playerfloat GetMaxHealth()
- Returns the max health of the playerint GetTeamIndex()
- Returns the team index of the playerstring GetVehicle()
- Returns the vehicle the player is currently in or nullEvents
PlayerDamanged(int newHealth, int prevHealth, int dmgBits)
PlayerHealed(int newHealth, int prevHealth)
PlayerKilled()
PlayerSpawn()
PlayerSwitchedTeam(int newTeam, int oldTeam)
PlayerEnteredVehicle(string vehicleClass)
PlayerExitedVehicle(string vehicleClass)
Enums
Expose damage bits as enum
The text was updated successfully, but these errors were encountered: