mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-06 09:43:21 +00:00
Remove unused model name
This commit is contained in:
parent
190826cd7d
commit
4d4379d75f
2 changed files with 4 additions and 4 deletions
Binary file not shown.
|
@ -119,9 +119,9 @@ public void OnMapEnd() {
|
||||||
public void CVAR_hTotalZombiesChanged(ConVar convar, const char[] oldValue, const char[] newValue) {
|
public void CVAR_hTotalZombiesChanged(ConVar convar, const char[] oldValue, const char[] newValue) {
|
||||||
if(hTotalZombies.IntValue > 0) {
|
if(hTotalZombies.IntValue > 0) {
|
||||||
commonLimit = hTotalZombies.IntValue;
|
commonLimit = hTotalZombies.IntValue;
|
||||||
}else if(hTotalZombies.IntValue < 0) {
|
} else if(hTotalZombies.IntValue < 0) {
|
||||||
commonLimit = hZCommonLimit.IntValue - hTotalZombies.IntValue;
|
commonLimit = hZCommonLimit.IntValue - hTotalZombies.IntValue;
|
||||||
}else {
|
} else {
|
||||||
commonLimit = 0;
|
commonLimit = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -132,8 +132,8 @@ public void OnEntityCreated(int entity, const char[] classname) {
|
||||||
if (StrEqual(classname, "infected") && IsDoneLoading) {
|
if (StrEqual(classname, "infected") && IsDoneLoading) {
|
||||||
SDKHook(entity, SDKHook_SpawnPost, Hook_SpawnPost);
|
SDKHook(entity, SDKHook_SpawnPost, Hook_SpawnPost);
|
||||||
|
|
||||||
char m_ModelName[PLATFORM_MAX_PATH];
|
// char m_ModelName[PLATFORM_MAX_PATH];
|
||||||
GetEntPropString(entity, Prop_Data, "m_ModelName", m_ModelName, sizeof(m_ModelName));
|
// GetEntPropString(entity, Prop_Data, "m_ModelName", m_ModelName, sizeof(m_ModelName));
|
||||||
if(GetRandomFloat() <= hPercentTotal.FloatValue) {
|
if(GetRandomFloat() <= hPercentTotal.FloatValue) {
|
||||||
if(GetRandomFloat() <= hPercentClown.FloatValue) {
|
if(GetRandomFloat() <= hPercentClown.FloatValue) {
|
||||||
SetEntityModel(entity, INFECTED_MODELS[Common_Clown]);
|
SetEntityModel(entity, INFECTED_MODELS[Common_Clown]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue