Knife Shot -
AbyssMorgan - 30.01.2016
Hello, I would like to present you the Knife Shot Script
Video:
https://www.youtube.com/watch?v=WJZCn3XXRHY
Download:
Knife.inc
3DTryg.inc Thread
ColAndreas Plugin
Installation:
PHP Code:
#include <3DTryg>
#include <Knife>
Functions:
PHP Code:
Knife::ToggleUseTeam(bool:toggle); //default: false
Knife::IsToggleUseTeam();
Knife::ToggleForAll(bool:toggle); //default: false
Knife::IsToggleForAll();
Knife::ToggleForPlayer(playerid,bool:toggle); //default: false
Knife::IsToggleForPlayer(playerid);
Knife::GetDamage(playerid);
Knife::SetDamage(playerid,Float:amount);
Knife::GetSpeed(playerid);
Knife::SetSpeed(playerid,Float:speed);
Knife::GetRange(playerid);
Knife::SetRange(playerid,Float:range);
Knife::GetAmmo(playerid);
Knife::SetAmmo(playerid,ammo);
Knife::TogglePoisoning(playerid,bool:toggle);
Knife::IsTogglePoisoning(playerid);
Knife::GetPoisoningTime(playerid);
Knife::SetPoisoningTime(playerid,seconds);
Knife::GetPoisoningDamage(playerid);
Knife::SetPoisoningDamage(playerid,Float:damage);*
Callbacks:
PHP Code:
OnPlayerRequestKnifeShot(playerid,targetid); //return 0 - prevent to use knife shoot (this callback is called also if ammo is 0)
Definitions:
PHP Code:
KNIFE_SPEED
KNIFE_MAX_RADIUS
KNIFE_REFRESH_ACTION
KNIFE_REFRESH_MISS
KNIFE_DAMAGE
KNIFE_WEAPON_AMMO_INFINITY
KNIFE_DOT_POISONING
KNIFE_POISONING_TIME
WEAPON_KNIFE_THROWN
WEAPON_KNIFE_POISONING
Activation:
PHP Code:
Weapon: Knife
Step 1: Right Mouse Button
Step 2: Left Mouse Button
Notice:
Filterscript not exist because filterscripts have limits.
This has been replaced by include, having automatic installation, efficient GameMode/FilterScript.
Non-Registered Users:
Bug Report
Re: Knife Shot -
SyS - 30.01.2016
Nice fs +rep
Re: Knife Shot -
K0P - 30.01.2016
You should increase the speed of the knife a little bit
Re: Knife Shot -
AbyssMorgan - 30.01.2016
Quote:
Originally Posted by K0P
You should increase the speed of the knife a little bit
|
just change the value
#define KNIFE_SPEED (12.0)
Respuesta: Knife Shot -
HaRdiiZin - 30.01.2016
Good job.
Re: Knife Shot -
Amunra - 31.01.2016
Good IDEA ....
But...
Quote:
pawno\include\3DTryg.inc(251) : error 017: undefined symbol "FLOAT_INFINITY"
|
How to fix ?
Re: Knife Shot -
AbyssMorgan - 31.01.2016
I recommend update you streamer
From streamer.inc
PHP Code:
#if !defined FLOAT_INFINITY
#define FLOAT_INFINITY (Float:0x7F800000)
#endif
Re: Knife Shot -
Amunra - 31.01.2016
Quote:
Originally Posted by AbyssMorgan
I recommend update you streamer
From streamer.inc
PHP Code:
#if !defined FLOAT_INFINITY #define FLOAT_INFINITY (Float:0x7F800000) #endif
|
Your Mean Streamer version 2.7.9 ?
Re: Knife Shot -
AbyssMorgan - 31.01.2016
Quote:
Originally Posted by Amunra
Your Mean Streamer version 2.7.9 ?
|
Yes
Check your streamer.inc whether it has FLOAT_INFINITY
//edit: the problem will be fixed in version 3DTryg.inc 2.1G
Re: Knife Shot -
Amunra - 31.01.2016
Quote:
Originally Posted by AbyssMorgan
Yes
Check your streamer.inc whether it has FLOAT_INFINITY
|
Can you give me a Download Link From Solidfiles ?
-a Pack Plugins Of Streamer 2.7.9-
My Computer Has Problem With opening Github link !
Re: Knife Shot -
AbyssMorgan - 31.01.2016
Quote:
Originally Posted by Amunra
Can you give me a Download Link From Solidfiles ?
-a Pack Plugins Of Streamer 2.7.9-
My Computer Has Problem With opening Github link !
|
http://www.solidfiles.com/d/e7fb939a26/
Re: Knife Shot -
Amunra - 31.01.2016
Quote:
Originally Posted by AbyssMorgan
|
Ok thanks
Rep+ added,Check this..
Re: Knife Shot -
AbyssMorgan - 01.02.2016
Hello, after a recent renovation 3DTryg.inc found a bug in IsPointNearly2Points(2D/3D).
By what the script Knife Shot does not work properly as the last film.
Bug has been fixed in 3DTryg.inc v2.2
Re: Knife Shot -
AbyssMorgan - 09.04.2016
Error with a knife at the fleeing of many players, fixed
Re: Knife Shot -
AbyssMorgan - 16.06.2016
Update 1.9:
Added detection team player for SetPlayerTeam(playerid, teamid);
with active:
PHP код:
ToggleUseTeamKnifeShoot(bool:toggle); //default: false
Re: Knife Shot -
MBilal - 16.06.2016
Unique +Rep
Re: Knife Shot -
samp_boy - 17.06.2016
good work!
suggestion: change the sound effect when u get hit by the knife.
Re: Knife Shot -
AbyssMorgan - 17.06.2016
Quote:
Originally Posted by samp_boy
good work!
suggestion: change the sound effect when u get hit by the knife.
|
Suggestion, what could be the sound ?
Re: Knife Shot -
samp_boy - 18.06.2016
Quote:
Originally Posted by AbyssMorgan
Suggestion, what could be the sound ?
|
a sort of ding ding! there you go! i got it for ya:
Код:
PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
Re: Knife Shot -
AbyssMorgan - 18.06.2016
Quote:
Originally Posted by samp_boy
a sort of ding ding! there you go! i got it for ya:
Код:
PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
|
Added sound.
To turn off you must add before include:
PHP код:
#define DISABLE_KNIFE_SOUND