• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Filterscript] Magic Wand
#1
Hello, I would like to present you the Magic Wand Script



Video:

https://www.youtube.com/watch?v=aaHfVz-UxR8



Download:

Magic.inc

3DTryg.inc

ColAndreas Plugin



Installation:

Code:
#include <colandreas>

#include <3DTryg>

#include <Magic>



Functions:

Code:
Magic::ToggleUseTeam(bool:toggle);            //default: false

Magic::IsToggleUseTeam();

Magic::ToggleForAll(bool:toggle);             //default: false

Magic::IsToggleForAll();

Magic::ToggleForPlayer(playerid,bool:toggle); //default: false

Magic::IsToggleForPlayer(playerid);

Magic::GetDamage(playerid);

Magic::SetDamage(playerid,Float:amount);

Magic::GetSpeed(playerid);

Magic::SetSpeed(playerid,Float:speed);

Magic::GetRange(playerid);

Magic::SetRange(playerid,Float:range);

Magic::GetAmmo(playerid);

Magic::SetAmmo(playerid,ammo);

Magic::TogglePoisoning(playerid,bool:toggle);

Magic::IsTogglePoisoning(playerid);

Magic::GetPoisoningTime(playerid);

Magic::SetPoisoningTime(playerid,seconds);

Magic::GetPoisoningDamage(playerid);

Magic::SetPoisoningDamage(playerid,Float:damage);

Magic::SetProjectile(playerid,modelid=18693,Float:rx=90.0,Float:ry=0.0,Float:rz=0.0,Float:offx=0.0,Float:offy=0.0,Float:offz=0.0);

Magic::GetProjectile(playerid,&modelid,&Float:rx=0.0,&Float:ry=0.0,&Float:rz=0.0,&Float:offx=0.0,&Float:offy=0.0,&Float:offz=0.0);



Callbacks:

Code:
OnPlayerRequestMagicShot(playerid,targetid); //return 0 - prevent to use magic shoot (this callback is called also if ammo is 0)



Definitions:

Code:
MAGIC_SPEED

MAGIC_MAX_RADIUS

MAGIC_REFRESH_ACTION

MAGIC_DAMAGE

MAGIC_DOT_POISONING

MAGIC_POISONING_TIME

MAGIC_WEAPON_AMMO_INFINITY



WEAPON_MAGIC_BULLET

WEAPON_MAGIC_POISONING



Activation:

Code:
Weapon: Fist

Left Mouse Button



Notice:

Filterscript not exist because filterscripts have limits.

This has been replaced by include, having automatic installation, efficient GameMode/FilterScript.
  Reply
#2
Update v1.3.0:



- General functions renamed



- Updated for Knife.inc standard



- Added functions:

Code:
Magic::TogglePoisoning(playerid,bool:toggle);

Magic::IsTogglePoisoning(playerid);

Magic::GetPoisoningTime(playerid);

Magic::SetPoisoningTime(playerid,seconds);

Magic::GetPoisoningDamage(playerid);

Magic::SetPoisoningDamage(playerid,Float:damage);



- Added death reasons:

Code:
WEAPON_MAGIC_BULLET

WEAPON_MAGIC_POISONING



- Added definitions:

Code:
MAGIC_DOT_POISONING

MAGIC_POISONING_TIME
  Reply


Forum Jump: