public static int G_GetWeaponForName(string WeaponName)
{//0x001c34b8 - uint G_GetWeaponForName(uint buffer, char const *name)
RPC.Call(0x001c34b8, 0x1004f000, WeaponName);
return PS3.Extension.ReadInt32(0x1004f000);
}
public static uint G_FireGrenade(uint Client, float[] Origin, string WeaponName = "frag_grenade_mp", int Time = 3500)
{//0x001993F8 - G_FireGrenade(gentity_s *parent, float *start, float *dir, int grenadeWPID, char grenModel, int rotate, int time)
int WeaponIndex = G_GetWeaponForName(WeaponName);
return (uint)RPC.Call(0x001993F8, 0x00FCA280 + (Client * 0x280), Origin, new float[] { 0, 0, 0 }, WeaponIndex, 1, Time, WeaponIndex);
}
public static uint SmokeGrenade(uint Client, string WeaponName = "smoke_grenade_mp", int Time = 3500)
{
if (string.IsNullOrEmpty(WeaponName))
WeaponName = "smoke_grenade_mp";
float[] Origin = GetOrigin(Client);
Origin[2] += -100;
return G_FireGrenade(Client, Origin, WeaponName);
}
Copyright © 2025, NextGenUpdate.
All Rights Reserved.