Author
|
Message
|
Senior Member
|
04-22-2019
, 22:55
l4d2 set grenade launcher clip to 3?
|
#1
|
I have this on pick up code working to set the clip size to 3 for the grenade launcher but when you reload it goes back to one.
How would I set this so it the clip size stays at 3?
This works fine and you can shoot 3 quick rounds.
public Action:OnPlayerUse(Handle:event, const String:name[], bool:dontBroadcast)
{
GetEdictClassname(w, pClass, sizeof(pClass));
if (StrEqual(pClass, "weapon_grenade_launcher", false))
{
SetEntProp(w, Prop_Send, "m_iClip1", clipinfo, 1);
SetEntProp(w, Prop_Data, "m_iClip1", clipinfo, 1);
Thanks
Last edited by Austin; 04-22-2019 at 22:56.
|
|
|
|