19.07.2014, 23:16
Update: Version 1.1
Added new getters and setters.
New extra function:
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".
Bug fixes:
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);
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
- 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.