[FilterScript] Knife Shot
#1

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:
WeaponKnife

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
Reply
#2

Nice fs +rep
Reply
#3

You should increase the speed of the knife a little bit
Reply
#4

Quote:
Originally Posted by K0P
View Post
You should increase the speed of the knife a little bit
just change the value

#define KNIFE_SPEED (12.0)
Reply
#5

Good job.
Reply
#6

Good IDEA ....
But...
Quote:

pawno\include\3DTryg.inc(251) : error 017: undefined symbol "FLOAT_INFINITY"

How to fix ?
Reply
#7

I recommend update you streamer

From streamer.inc
PHP Code:
#if !defined FLOAT_INFINITY
    #define FLOAT_INFINITY (Float:0x7F800000)
#endif 
Reply
#8

Quote:
Originally Posted by AbyssMorgan
View Post
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 ?
Reply
#9

Quote:
Originally Posted by Amunra
View Post
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
Reply
#10

Quote:
Originally Posted by AbyssMorgan
View Post
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 !
Reply
#11

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/
Reply
#12

Quote:
Originally Posted by AbyssMorgan
Посмотреть сообщение
Ok thanks
Rep+ added,Check this..
Reply
#13

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
Reply
#14

Error with a knife at the fleeing of many players, fixed
Reply
#15

Update 1.9:
Added detection team player for SetPlayerTeam(playerid, teamid);
with active:
PHP код:
ToggleUseTeamKnifeShoot(bool:toggle); //default: false 
Reply
#16

Unique +Rep
Reply
#17

good work!

suggestion: change the sound effect when u get hit by the knife.
Reply
#18

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 ?
Reply
#19

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);
Reply
#20

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 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)