mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-06 07:23:20 +00:00
Changes
This commit is contained in:
parent
74f04f4847
commit
b6cee78ab0
8 changed files with 55 additions and 32 deletions
|
@ -62,11 +62,13 @@ char FORBIDDEN_CLASSNAMES[MAX_FORBIDDEN_CLASSNAMES][] = {
|
|||
"prop_ragdoll"
|
||||
};
|
||||
|
||||
#define MAX_FORBIDDEN_MODELS 1
|
||||
#define MAX_FORBIDDEN_MODELS 2
|
||||
char FORBIDDEN_MODELS[MAX_FORBIDDEN_MODELS][] = {
|
||||
"models/props_vehicles/c130.mdl",
|
||||
"models/props_vehicles/helicopter_rescue.mdl"
|
||||
};
|
||||
|
||||
|
||||
#define MAX_REVERSE_CLASSNAMES 2
|
||||
// Classnames that should automatically trigger reverse infected
|
||||
static char REVERSE_CLASSNAMES[MAX_REVERSE_CLASSNAMES][] = {
|
||||
|
@ -90,7 +92,7 @@ Action Command_DoAHat(int client, int args) {
|
|||
if(adminId == INVALID_ADMIN_ID) {
|
||||
PrintToChat(client, "[Hats] Hats are for admins only");
|
||||
return Plugin_Handled;
|
||||
} else if(!adminId.HasFlag(Admin_Cheats)) {
|
||||
} else if(!adminId.HasFlag(Admin_Custom2)) {
|
||||
PrintToChat(client, "[Hats] You do not have permission");
|
||||
return Plugin_Handled;
|
||||
}
|
||||
|
@ -750,7 +752,7 @@ void EquipHat(int client, int entity, const char[] classname = "", int flags = H
|
|||
GetEntPropVector(modifyEntity, Prop_Send, "m_vecMins", mins);
|
||||
PrintToServer("%s mins: %f height:%f", classname, mins[2], maxs[2] - mins[2]);
|
||||
if(StrContains(classname, "weapon_molotov") > -1 || StrContains(classname, "weapon_pipe_bomb") > -1 || StrContains(classname, "weapon_vomitjar") > -1) {
|
||||
hatData[client].offset[2] += 10.0 + 1.0;
|
||||
hatData[client].offset[2] += 10.0;
|
||||
} else {
|
||||
hatData[client].offset[2] += 10.0 + mins[2];
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@ TopMenuObject g_propSpawnerCategory;
|
|||
public void OnAdminMenuReady(Handle topMenuHandle) {
|
||||
TopMenu topMenu = TopMenu.FromHandle(topMenuHandle);
|
||||
if(g_topMenu != topMenuHandle) {
|
||||
g_propSpawnerCategory = topMenu.AddCategory("hats_editor", Category_Handler);
|
||||
g_propSpawnerCategory = topMenu.AddCategory("hats_editor", Category_Handler, "sm_prop");
|
||||
if(g_propSpawnerCategory != INVALID_TOPMENUOBJECT) {
|
||||
topMenu.AddItem("editor_spawn", AdminMenu_Spawn, g_propSpawnerCategory, "sm_prop");
|
||||
topMenu.AddItem("editor_edit", AdminMenu_Edit, g_propSpawnerCategory, "sm_prop");
|
||||
|
@ -20,7 +20,7 @@ void Category_Handler(TopMenu topmenu, TopMenuAction action, TopMenuObject topob
|
|||
if(action == TopMenuAction_DisplayTitle) {
|
||||
Format(buffer, maxlength, "Select a task:");
|
||||
} else if(action == TopMenuAction_DisplayOption) {
|
||||
Format(buffer, maxlength, "Spawn Props (Beta)");
|
||||
Format(buffer, maxlength, "Spawn Props");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue