mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-06 05:33:21 +00:00
Fixes
This commit is contained in:
parent
c69c03a42b
commit
3ffe0540ac
3 changed files with 16 additions and 12 deletions
|
@ -336,7 +336,6 @@ Action Command_DoAHat(int client, int args) {
|
|||
// Find a new hatable entity
|
||||
int flags = 0;
|
||||
if(args > 0 && isForced) {
|
||||
char arg[16];
|
||||
entity = GetCmdArgInt(1);
|
||||
} else {
|
||||
entity = GetLookingEntity(client, Filter_ValidHats);
|
||||
|
@ -814,10 +813,6 @@ void EquipHat(int client, int entity, const char[] classname = "", int flags = H
|
|||
SetParentAttachment(modifyEntity, attachPoint, true);
|
||||
}
|
||||
|
||||
if(HasFlag(client, HAT_COMMANDABLE)) {
|
||||
ChooseRandomPosition(hatData[client].offset);
|
||||
L4D2_CommandABot(entity, client, BOT_CMD_MOVE, hatData[client].offset);
|
||||
}
|
||||
} else {
|
||||
SetParent(entity, client);
|
||||
SetParentAttachment(modifyEntity, attachPoint, true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue