bz_fireWorldGM ( int targetPlayerID, float lifetime, float *pos, float tilt, float direction, float dt , bz_eTeamType shotTeam = eRogueTeam );
Parameters
Code: Select all
name type value description
targetPlayerID int Player to fire the GM at.
lifetime float How long the world weapon will "live".
*pos float Position the world weapon will fire from.
tilt float The tilt of the weapon in radians.
direction float The direction of which to fire the world weapon in radians. (rotation)
dt float Delay time. How many seconds the weapon waits before firing.
shotTeam bz_eTeamType Team color of the weapon. (Rogue by default)
Parameters
Code: Select all
name type value description
flagType const char* Flag type the world weapon will fire with
lifetime float How long the world weapon will "live".
fromPlayer int Player ID that fired the shot, or BZ_SERVER.
*pos float Position the world weapon will fire from.
tilt float The tilt of the weapon in radians.
direction float The direction of which to fire the world weapon in radians. (rotation)
shotID int Shot ID of the world weapon.
dt float Delay time. How many seconds the weapon waits before firing.
shotTeam bz_eTeamType Team color of the weapon. (Rogue by default)
bz_fireServerShot(const char* shotType, float origin[3], float vector[3], bz_eTeamType color = eRogueTeam, int targetPlayerId = -1);
How would I convert both versions to the newer version of the API?
(I would like to be able to update these two custom flag plug-ins SnakeShots and CustomFlags.)
-Zehra