Spaces:
Build error
Build error
Update .sp
Browse files
.sp
CHANGED
|
@@ -160,4 +160,39 @@ stock int GetWeaponSlot(int client, int rweapon){
|
|
| 160 |
}
|
| 161 |
}
|
| 162 |
return -1;
|
| 163 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 160 |
}
|
| 161 |
}
|
| 162 |
return -1;
|
| 163 |
+
}
|
| 164 |
+
|
| 165 |
+
/*
|
| 166 |
+
public Action OnPlayerRunCmd(int client, int& buttons, int& impulse, float vel[3], float angles[3], int& weapon, int& subtype, int& cmdnum, int& tickcount, int& seed, int mouse[2])
|
| 167 |
+
{
|
| 168 |
+
if(IsFakeClient(client) || !IsValidClient(client)){
|
| 169 |
+
return Plugin_Continue;
|
| 170 |
+
}
|
| 171 |
+
int iWeapon = GetEntPropEnt(client, Prop_Send, "m_hActiveWeapon");
|
| 172 |
+
if(iWeapon > 0 && iWeapon < 2048){
|
| 173 |
+
char sAttribute[48];
|
| 174 |
+
if(!TF2CustAttr_GetString(iWeapon, ATTRIBUTE_NAME, sAttribute, sizeof(sAttribute)))
|
| 175 |
+
return Plugin_Continue;
|
| 176 |
+
|
| 177 |
+
if((buttons & IN_ATTACK2))
|
| 178 |
+
{
|
| 179 |
+
|
| 180 |
+
}
|
| 181 |
+
|
| 182 |
+
}
|
| 183 |
+
return Plugin_Continue;
|
| 184 |
+
}
|
| 185 |
+
*/
|
| 186 |
+
|
| 187 |
+
// Attributes|Conditions
|
| 188 |
+
// TF2Attrib_SetByName(client, "move speed penalty", speed);
|
| 189 |
+
// TF2Attrib_RemoveByName(client, "move speed penalty");
|
| 190 |
+
// TF2_AddCondition(client, TFCond_SpeedBuffAlly, 0.001);
|
| 191 |
+
|
| 192 |
+
// VM Setting
|
| 193 |
+
// int vm = GetEntPropEnt(client, Prop_Send, "m_hViewModel");
|
| 194 |
+
// SetEntProp(vm,Prop_Send,"m_nSequence",9);
|
| 195 |
+
|
| 196 |
+
// Play|Stop sound
|
| 197 |
+
// EmitSoundToClient(client,ChargingSound);
|
| 198 |
+
// StopSound(client,SNDCHAN_AUTO,ChargingSound);
|