SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

Reply
 
Thread Tools Display Modes
Old 02/10/2019, 09:01 AM   #1
AbyssMorgan
Banned
 
Join Date: Apr 2015
Location: Poland
Posts: 1,213
Reputation: 352
Cool Extended Grenade

Hello, I would like to present you the Extended Granade.

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

Functions:
PHP 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::CreateGrenadeEffect(playerid,special_weaponid,Float:x,Float:y,Float:z);
Grenade::DestroyEffect(mobid); 
Definitions:
PHP 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 Thread
ColAndreas Plugin

Non-Registered Users:
Bug Report

Last edited by AbyssMorgan; 08/10/2019 at 05:56 PM. Reason: Update v1.1.0
AbyssMorgan is offline   Reply With Quote
Old 02/10/2019, 10:37 AM   #2
Gammix
High-roller
 
Gammix's Avatar
 
Join Date: Jan 2015
Location: Canada
Posts: 1,766
Reputation: 840
Default Re: Extended Grenade

Does this works when a grenade bounces of a surface or wall?
__________________

Follow me on Github: Follow me on Spotify: Donate on Paypal:

Gammix is online now   Reply With Quote
Old 02/10/2019, 10:43 AM   #3
AbyssMorgan
Banned
 
Join Date: Apr 2015
Location: Poland
Posts: 1,213
Reputation: 352
Default Re: Extended Grenade

Quote:
Originally Posted by Gammix View Post
Does this works when a grenade bounces of a surface or wall?
Sometimes this is still prototype grenade detection
https://www.youtube.com/watch?v=xjMHYBKYo1g
AbyssMorgan is offline   Reply With Quote
Old 02/10/2019, 10:43 AM   #4
cSharp
Big Clucker
 
Join Date: Oct 2018
Posts: 82
Reputation: 27
Default Re: Extended Grenade

Quote:
Originally Posted by AbyssMorgan View Post
Currently no collision check, but prototype work fine
https://www.youtube.com/watch?v=otHLzxZdjiE
Would be nice to know if you've changed on this.

EDIT: timing is unreal.



Either way, great release, 5 stars from me.
cSharp is offline   Reply With Quote
Old 04/10/2019, 08:19 PM   #5
Markski
Big Clucker
 
Markski's Avatar
 
Join Date: Apr 2015
Location: La Plata, Argentina
Posts: 101
Reputation: 17
Default Re: Extended Grenade

This is some of the best stuff I've ever seen. I feel foolish for saying it'd be impossible in the thread that asked for this - Excelent work from you as usual.
Markski is offline   Reply With Quote
Old 08/10/2019, 05:57 PM   #6
AbyssMorgan
Banned
 
Join Date: Apr 2015
Location: Poland
Posts: 1,213
Reputation: 352
Default Re: Extended Grenade

Update v1.1.0:

- Renamed function:
PHP Code:
Grenade::CreateGrenadeEffect -> Grenade::GrenadeEffectByPlayer 
- Added functions:
PHP Code:
Grenade::IsToggleGasMask(playerid);
Grenade::ToggleGasMask(playerid,bool:toggle);
 
//special update for Missile Launcher
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); 
- Added kill detection: WEAPON_SUFFOCATION, WEAPON_NAPALM

- Fixed DOT in vehicle
AbyssMorgan is offline   Reply With Quote
Old 07/11/2019, 04:16 PM   #7
RogueDrifter
High-roller
 
RogueDrifter's Avatar
 
Join Date: Dec 2017
Location: SA-MP Drifting world.
Posts: 1,179
Reputation: 404
Default Re: Extended Grenade

Okay, wow. Amazing. Great. Creative. New. Unique.
__________________
Quote:
Originally Posted by Andy
My anti cheat is still relevant *puts shades on* https://github.com/RogueDrifter/Anti_cheat_pack

[Github]:Link [Gists]:Link [Forum]:Link [Server]:Link [Discord]:Link
RogueDrifter is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] GTA IV Grenade Mode TraniLurese Filterscripts 11 26/02/2013 01:10 AM
Smoke Grenade. fuem1907 Scripting Help 0 11/09/2012 12:30 PM
Grenade launcher Mike_Peterson Scripting Help 17 26/02/2012 08:35 PM
Grenade Position Infamous Scripting Help 4 14/11/2011 12:58 AM
Grenade's Bessensap Help Archive 4 13/11/2010 04:26 PM


All times are GMT. The time now is 04:20 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.