[Include] rTurret - Easily create interactive turrets!
#11

Update: Version 1.1



Added new getters and setters.
pawn Код:
GetTurretOwner(turretid);
GetTurretMaterial(turretid, materialindex, &modelid, txdname[], texturename[], &materialcolor, maxtxdname = sizeof txdname, maxtexturename = sizeof texturename);
pawn Код:
SetTurretOwner(turretid, playerid);
SetTurretMaterial(turretid, materialindex, modelid, const txdname[], const texturename[], materialcolor = 0);


New extra function:
pawn Код:
ToggleTurretTargetFocus(turretid, toggle);
ToggleTurretTargetFocus toggles whether the turret reserves its damage for the player it's aiming at while ignoring other targets. If enabled, players apart from the target won't take damage even if they get caught in the crossfire. Use this for turret aiming behaviors (TURRET_BEHAVIOR_AIM_CLOSEST - TURRET_BEHAVIOR_AIM_CUSTOM). Target focus is off by default.



In addition, rTurret now supports alternate British English spelling of macros and functions containing the words "behavior" or "color".
pawn Код:
#define TURRET_BEHAVIOUR_STATIONARY                 TURRET_BEHAVIOR_STATIONARY
#define TURRET_BEHAVIOUR_ROTATE_CLOCKWISE           TURRET_BEHAVIOR_ROTATE_CLOCKWISE
#define TURRET_BEHAVIOUR_ROTATE_COUNTERCLOCKWISE    TURRET_BEHAVIOR_ROTATE_COUNTERCLOCKWISE
#define TURRET_BEHAVIOUR_AIM_CLOSEST                TURRET_BEHAVIOR_AIM_CLOSEST
#define TURRET_BEHAVIOUR_AIM_FARTHEST               TURRET_BEHAVIOR_AIM_FARTHEST
#define TURRET_BEHAVIOUR_AIM_WEAKEST                TURRET_BEHAVIOR_AIM_WEAKEST
#define TURRET_BEHAVIOUR_AIM_STRONGEST              TURRET_BEHAVIOR_AIM_STRONGEST
#define TURRET_BEHAVIOUR_AIM_RANDOM                 TURRET_BEHAVIOR_AIM_RANDOM
#define TURRET_BEHAVIOUR_AIM_SINGLE                 TURRET_BEHAVIOR_AIM_SINGLE
#define TURRET_BEHAVIOUR_AIM_CUSTOM                 TURRET_BEHAVIOR_AIM_CUSTOM

#define GetTurretBehaviour                          GetTurretBehavior
#define SetTurretBehaviour                          SetTurretBehavior
#define GetTurretBulletColour                       GetTurretBulletColor
#define SetTurretBulletColour                       SetTurretBulletColor
Bug fixes:
  • Fixed a bug where the turret bullets disappeared even if they hit its owner or a player on its team.
  • Turret damages greater than a player's health and armor combined now instantly kill the player whereas previously it took two hits to do so.
  • Turrets now don't shoot upon creation if checkarea is enabled and there are no targets in its range.
Reply


Messages In This Thread
rTurret - Highly customizable turrets! - by Corekt - 15.07.2014, 03:50
Re: rTurret - Easily create interactive turrets! - by MehranGta - 15.07.2014, 04:34
Re: rTurret - Easily create interactive turrets! - by iRaiDeN - 15.07.2014, 04:54
Re: rTurret - Easily create interactive turrets! - by Team_PRO - 15.07.2014, 05:06
Re: rTurret - Easily create interactive turrets! - by Niko_boy - 15.07.2014, 05:09
Re: rTurret - Easily create interactive turrets! - by R0 - 15.07.2014, 22:09
Respuesta: rTurret - Easily create interactive turrets! - by CuervO - 16.07.2014, 03:59
Re: rTurret - Easily create interactive turrets! - by Arroway - 16.07.2014, 05:07
Re: Respuesta: rTurret - Easily create interactive turrets! - by Corekt - 16.07.2014, 16:30
Re: rTurret - Easily create interactive turrets! - by StreetGT - 16.07.2014, 16:36
Re: rTurret - Easily create interactive turrets! - by Corekt - 19.07.2014, 23:16
Re: rTurret - Easily create interactive turrets! - by iFarbod - 22.07.2014, 13:28
Re: rTurret - Easily create interactive turrets! - by DemME - 24.07.2014, 23:39
Re: rTurret - Easily create interactive turrets! - by Onfroi - 28.06.2015, 02:16
Re: rTurret - Easily create interactive turrets! - by Crayder - 28.06.2015, 02:32
Re: rTurret - Easily create interactive turrets! - by Onfroi - 28.06.2015, 03:00
Re: rTurret - Easily create interactive turrets! - by Sellize - 28.06.2015, 10:54
Re: rTurret - Easily create interactive turrets! - by Gasman - 28.06.2015, 12:49
Re: rTurret - Easily create interactive turrets! - by Konverse - 29.06.2015, 06:04
Re: rTurret - Easily create interactive turrets! - by Corekt - 30.06.2015, 00:15
Re: rTurret - Highly customizable turrets! - by Corekt - 01.07.2015, 06:48
Re: rTurret - Easily create interactive turrets! - by Corekt - 02.07.2015, 20:50
Re: rTurret - Easily create interactive turrets! - by liquor - 03.07.2015, 04:11
Re: rTurret - Easily create interactive turrets! - by Corekt - 03.07.2015, 17:29
Re: rTurret - Easily create interactive turrets! - by Onfroi - 09.07.2015, 21:38
Re: rTurret - Easily create interactive turrets! - by Corekt - 18.07.2015, 20:52

Forum Jump:


Users browsing this thread: 2 Guest(s)