I've found a predator model from
http://www.andi67.bplaced.net/Forum/...php?f=39&t=396 as it has a knife invisible model which Andi67 is member on this forum.
With the knife plugin, I'm aware he said which plugin to use but that is not what I'm looking for. I'd like a plugin where I can set the knife model for terrorist by default?
- Set Knife model?
SetEntityKnifeModel(client, "model file path");
Would that entity be correct?
I don't want a skin chooser or anything, no menu, no commands etc. Just set knife model by default every time. I've tried searching, doesn't seem there is one.
EDIT: This is an example but with arms, I'd like it to be the same for knife. I did not create this code
PHP Code:
#include <sourcemod>
#define CTARMS "models/weapons/ct_arms.mdl"
#define TTARMS "models/player/custom_player/avp/predator_invisible/predator_invisible_arms.mdl"
public Plugin myinfo =
{
name = "",
author = "",
description = "",
version = "1.0",
url = ""
}
public void OnPluginStart()
{
HookEvent("player_spawn", PlayerSpawn);
}
public OnMapStart()
{
PrecacheModel(CTARMS, true);
PrecacheModel(TTARMS, true);
}
public Action PlayerSpawn(Handle event, const char[] name, bool dbc)
{
int client = GetClientOfUserId(GetEventInt(event, "userid"));
if(client)
{
switch(GetClientTeam(client))
{
case 2: SetEntPropString(client, Prop_Send, "m_szArmsModel", TTARMS);
case 3: SetEntPropString(client, Prop_Send, "m_szArmsModel", CTARMS);
}
}
}
Can change the define model file path and the code into knife world model entity?