mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-06 12:23:21 +00:00
add some includes I use
This commit is contained in:
parent
81337fe89f
commit
266f2ed081
7 changed files with 5494 additions and 0 deletions
27
scripting/include/l4d_survivor_identity_fix.inc
Normal file
27
scripting/include/l4d_survivor_identity_fix.inc
Normal file
|
@ -0,0 +1,27 @@
|
|||
enum Character {
|
||||
Character_Nick,
|
||||
Character_Ellis,
|
||||
Character_Rochelle,
|
||||
Character_Coach,
|
||||
Character_Bill,
|
||||
Character_Francis,
|
||||
Character_Zoey,
|
||||
Character_Louis
|
||||
}
|
||||
native int IdentityFix_SetPlayerModel(int client, int args);
|
||||
|
||||
|
||||
static bool nativeAvailable, nativeTested;
|
||||
bool UpdatePlayerIdentity(int client, Character character) {
|
||||
if(!nativeTested) {
|
||||
nativeTested = true;
|
||||
nativeAvailable = GetFeatureStatus(FeatureType_Native, "IdentityFix_SetPlayerModel") == FeatureStatus_Available;
|
||||
}
|
||||
if(nativeAvailable) {
|
||||
int result = IdentityFix_SetPlayerModel(client, view_as<int>(character));
|
||||
return result == 0;
|
||||
}else{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue