• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Library] ExtendedGrenade
#1
Hello, I would like to present you the Extended Granade.



Video:

https://www.youtube.com/watch?v=wlFEwpE0j7k



Functions:

Code:
Grenade::IsWeaponEnable(playerid,special_weaponid);

Grenade::WeaponEnable(playerid,special_weaponid,bool:enable);

Grenade::GetSpecialAmmo(playerid,special_weaponid);

Grenade::SetSpecialAmmo(playerid,special_weaponid,ammo);

Grenade::GetEffectID(playerid,special_weaponid);

Grenade::SetEffectID(playerid,special_weaponid,effectid);

Grenade::GetDamage(playerid,special_weaponid);

Grenade::SetDamage(playerid,special_weaponid,Float:damage);

Grenade::GetVehicleDamage(playerid,special_weaponid);

Grenade::SetVehicleDamage(playerid,special_weaponid,Float:damage);

Grenade::GetTime(playerid,special_weaponid);

Grenade::SetTime(playerid,special_weaponid,seconds);

Grenade::IsToggleGasMask(playerid);

Grenade::ToggleGasMask(playerid,bool:toggle);

Grenade::GetSpecialWeaponID(weaponid);

Grenade::GrenadeEffectByPlayer(playerid,special_weaponid,Float:x,Float:y,Float:z);

Grenade::CreateGrenadeEffect(special_weaponid,effectid,Float:x,Float:y,Float:z,worldid,interiorid,playerid,Float:streamdistance,Float:damage,Float:veh_damage,active_time=25,byplayerid=INVALID_PLAYER_ID);

Grenade::DestroyEffect(mobid);



Definitions:

Code:
MAX_GRENADE_EFFECT



GRENADE_DOT_TEAR_GAS

GRENADE_DOT_FIRE



GRENADE_EFFECT_TIME



GRENADE_DEFAULT_PLAYER_DAMAGE

GRENADE_DEFAULT_VEHICLE_DAMAGE



INVALID_GRENADE_ID



//death reason

WEAPON_SUFFOCATION

WEAPON_NAPALM



GRENADE_MAX_SPECIAL_WEAPON



GRENADE_SPECIAL_WEAPON_NONE

GRENADE_SPECIAL_WEAPON_GRENADE

GRENADE_SPECIAL_WEAPON_TEARGAS

GRENADE_SPECIAL_WEAPON_MOLTOV



GRENADE_EFFECT_NONE



GRENADE_EFFECT_CLUSTER_BOMB_1

GRENADE_EFFECT_CLUSTER_BOMB_2

GRENADE_EFFECT_CLUSTER_BOMB_3

GRENADE_EFFECT_CLUSTER_BOMB_4

GRENADE_EFFECT_BANG_GRENADE



GRENADE_EFFECT_SMALL_SMOKE

GRENADE_EFFECT_HUGE_SMOKE_1

GRENADE_EFFECT_HUGE_SMOKE_2

GRENADE_EFFECT_HUGE_SMOKE_3



GRENADE_EFFECT_NAPALM



Download:

ExtendedGrenade.inc

3DTryg.inc

ColAndreas Plugin
  Reply


Forum Jump: