2015-09-30 02:56:11 +02:00
|
|
|
#ifndef _MISC_FUNCTIONS_HPP_
|
|
|
|
#define _MISC_FUNCTIONS_HPP_
|
|
|
|
|
2016-02-20 23:25:00 +01:00
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
#include "SqBase.hpp"
|
|
|
|
|
2015-09-30 02:56:11 +02:00
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
namespace SqMod {
|
|
|
|
|
2016-05-22 05:20:38 +02:00
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the name of a certain key-code.
|
|
|
|
*/
|
|
|
|
CSStr GetKeyCodeName(Uint8 keycode);
|
2016-02-20 23:25:00 +01:00
|
|
|
|
2016-05-22 05:20:38 +02:00
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Modify the name of a certain key-code.
|
|
|
|
*/
|
2019-02-17 16:23:59 +01:00
|
|
|
void SetKeyCodeName(Uint8 keycode, StackStrF & name);
|
2016-02-20 23:25:00 +01:00
|
|
|
|
2016-05-22 05:20:38 +02:00
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the server version.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
Uint32 GetServerVersion();
|
|
|
|
|
2016-05-22 05:20:38 +02:00
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the server settings.
|
|
|
|
*/
|
|
|
|
Table GetServerSettings();
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the number of loaded plug-ins.
|
|
|
|
*/
|
|
|
|
Uint32 GetNumberOfPlugins();
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve information about a certain plug-in.
|
|
|
|
*/
|
|
|
|
Table GetPluginInfo(Int32 plugin_id);
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Attempt to find a plug-in identifier by it's name.
|
|
|
|
*/
|
2019-02-17 16:23:59 +01:00
|
|
|
Int32 FindPlugin(StackStrF & name);
|
2016-05-22 05:20:38 +02:00
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Send a custom command to the loaded plug-ins.
|
|
|
|
*/
|
2019-02-17 16:23:59 +01:00
|
|
|
void SendPluginCommand(Uint32 identifier, StackStrF & payload);
|
2016-05-22 05:20:38 +02:00
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the server time.
|
|
|
|
*/
|
|
|
|
const ULongInt & GetTime();
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Send a log message to the server.
|
|
|
|
*/
|
2019-02-17 16:23:59 +01:00
|
|
|
void SendLogMessage(StackStrF & msg);
|
2016-05-22 05:20:38 +02:00
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the last error that occurred on the server.
|
|
|
|
*/
|
|
|
|
Int32 GetLastError();
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the version of the host Squirrel plug-in as an integer.
|
|
|
|
*/
|
|
|
|
Uint32 GetPluginVersion();
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the version of the host Squirrel plug-in as a string.
|
|
|
|
*/
|
|
|
|
CSStr GetPluginVersionStr();
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the name of the host Squirrel plug-in.
|
|
|
|
*/
|
|
|
|
CSStr GetPluginName();
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the author of the host Squirrel plug-in.
|
|
|
|
*/
|
|
|
|
CSStr GetPluginAuthor();
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the id of the host Squirrel plug-in.
|
|
|
|
*/
|
|
|
|
Int32 GetPluginID();
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the port onto which the server was binded.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
Uint32 GetServerPort();
|
2016-05-22 05:20:38 +02:00
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the server flags.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
Uint32 GetServerFlags();
|
|
|
|
|
2016-05-22 05:20:38 +02:00
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the maximum number of clients allowed on the server.
|
|
|
|
*/
|
|
|
|
Int32 GetMaxPlayers(void);
|
2016-02-20 23:25:00 +01:00
|
|
|
|
2016-05-22 05:20:38 +02:00
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Modify the maximum number of clients allowed on the server.
|
|
|
|
*/
|
|
|
|
void SetMaxPlayers(Int32 max);
|
2016-02-20 23:25:00 +01:00
|
|
|
|
2016-05-22 05:20:38 +02:00
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the server name.
|
|
|
|
*/
|
|
|
|
CSStr GetServerName();
|
2016-02-20 23:25:00 +01:00
|
|
|
|
2016-05-22 05:20:38 +02:00
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Modify the server name.
|
|
|
|
*/
|
2019-02-17 16:23:59 +01:00
|
|
|
void SetServerName(StackStrF & name);
|
2016-02-20 23:25:00 +01:00
|
|
|
|
2016-05-22 05:20:38 +02:00
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the server password.
|
|
|
|
*/
|
|
|
|
CSStr GetServerPassword();
|
2016-02-20 23:25:00 +01:00
|
|
|
|
2016-05-22 05:20:38 +02:00
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Modify the server password.
|
|
|
|
*/
|
2019-02-17 16:23:59 +01:00
|
|
|
void SetServerPassword(StackStrF & passwd);
|
2016-02-20 23:25:00 +01:00
|
|
|
|
2016-05-22 05:20:38 +02:00
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the game-mode text.
|
|
|
|
*/
|
|
|
|
CSStr GetGameModeText();
|
2016-02-20 23:25:00 +01:00
|
|
|
|
2016-05-22 05:20:38 +02:00
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Modify the game-mode text.
|
|
|
|
*/
|
2019-02-17 16:23:59 +01:00
|
|
|
void SetGameModeText(StackStrF & text);
|
2016-05-22 05:20:38 +02:00
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Create a radio stream.
|
|
|
|
*/
|
2019-02-17 16:23:59 +01:00
|
|
|
void CreateRadioStream(bool listed, StackStrF & name, StackStrF & url);
|
2016-05-22 05:20:38 +02:00
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Create a radio stream.
|
|
|
|
*/
|
2019-02-17 16:23:59 +01:00
|
|
|
void CreateRadioStreamEx(Int32 id, bool listed, StackStrF & name, StackStrF & url);
|
2016-05-22 05:20:38 +02:00
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Remove a radio stream.
|
|
|
|
*/
|
|
|
|
void RemoveRadioStream(Int32 id);
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Shutdown the server.
|
|
|
|
*/
|
|
|
|
void ShutdownServer();
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve a server option.
|
|
|
|
*/
|
|
|
|
bool GetServerOption(Int32 option_id);
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Modify a server option.
|
|
|
|
*/
|
|
|
|
void SetServerOption(Int32 option_id, bool toggle);
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Modify a server option.
|
|
|
|
*/
|
2017-02-21 20:24:59 +01:00
|
|
|
void SetServerOptionEx(Int32 option_id, bool toggle, Int32 header, LightObj & payload);
|
2016-05-22 05:20:38 +02:00
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the world bounds.
|
|
|
|
*/
|
|
|
|
Table GetWorldBounds();
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Modify the world bounds.
|
|
|
|
*/
|
|
|
|
void SetWorldBounds(const Vector2 & max, const Vector2 & min);
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Modify the world bounds.
|
|
|
|
*/
|
|
|
|
void SetWorldBoundsEx(Float32 max_x, Float32 max_y, Float32 min_x, Float32 min_y);
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the wasted settings.
|
|
|
|
*/
|
|
|
|
Table GetWastedSettings();
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Modify the wasted settings.
|
|
|
|
*/
|
|
|
|
void SetWastedSettings(Uint32 dt, Uint32 ft, Float32 fis, Float32 fos,
|
|
|
|
const Color3 & fc, Uint32 cfs, Uint32 cft);
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the current time-rate.
|
|
|
|
*/
|
|
|
|
Uint32 GetTimeRate(void);
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Modify the current time-rate.
|
|
|
|
*/
|
|
|
|
void SetTimeRate(Uint32 rate);
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the game hour.
|
|
|
|
*/
|
|
|
|
Int32 GetHour(void);
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Modify the game hour.
|
|
|
|
*/
|
|
|
|
void SetHour(Int32 hour);
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the game minute.
|
|
|
|
*/
|
|
|
|
Int32 GetMinute(void);
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Modify the game minute.
|
|
|
|
*/
|
|
|
|
void SetMinute(Int32 minute);
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the weather effects.
|
|
|
|
*/
|
|
|
|
Int32 GetWeather(void);
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Modify the weather effects.
|
|
|
|
*/
|
|
|
|
void SetWeather(Int32 weather);
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the game gravity.
|
|
|
|
*/
|
|
|
|
Float32 GetGravity(void);
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Modify the game gravity.
|
|
|
|
*/
|
|
|
|
void SetGravity(Float32 gravity);
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the game speed.
|
|
|
|
*/
|
|
|
|
Float32 GetGameSpeed(void);
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Modify the game speed.
|
|
|
|
*/
|
|
|
|
void SetGameSpeed(Float32 speed);
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the water level.
|
|
|
|
*/
|
|
|
|
Float32 GetWaterLevel(void);
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Modify the water level.
|
|
|
|
*/
|
|
|
|
void SetWaterLevel(Float32 level);
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the maximum flight altitude.
|
|
|
|
*/
|
|
|
|
Float32 GetMaximumFlightAltitude(void);
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Modify the maximum flight altitude.
|
|
|
|
*/
|
|
|
|
void SetMaximumFlightAltitude(Float32 height);
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the kill command delay.
|
|
|
|
*/
|
|
|
|
Int32 GetKillCommandDelay(void);
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Modify the kill command delay.
|
|
|
|
*/
|
|
|
|
void SetKillCommandDelay(Int32 delay);
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the vehicles forced respawn height.
|
|
|
|
*/
|
|
|
|
Float32 GetVehiclesForcedRespawnHeight(void);
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Modify the vehicles forced respawn height.
|
|
|
|
*/
|
|
|
|
void SetVehiclesForcedRespawnHeight(Float32 height);
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Create a game explosion.
|
|
|
|
*/
|
|
|
|
void CreateExplosion(Int32 world, Int32 type, const Vector3 & pos, CPlayer & source, bool grounded);
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Create a game explosion.
|
|
|
|
*/
|
|
|
|
void CreateExplosionEx(Int32 world, Int32 type, Float32 x, Float32 y, Float32 z, CPlayer & source, bool grounded);
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Play a game sound.
|
|
|
|
*/
|
|
|
|
void PlaySound(Int32 world, Int32 sound, const Vector3 & pos);
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Play a game sound.
|
|
|
|
*/
|
|
|
|
void PlaySoundEx(Int32 world, Int32 sound, Float32 x, Float32 y, Float32 z);
|
|
|
|
|
2018-09-08 09:12:57 +02:00
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Play a game sound to a specific world.
|
|
|
|
*/
|
|
|
|
void PlaySoundForWorld(Int32 world, Int32 sound);
|
|
|
|
|
2016-05-22 05:20:38 +02:00
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Make a map object invisible.
|
|
|
|
*/
|
|
|
|
void HideMapObject(Int32 model, const Vector3 & pos);
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Make a map object invisible.
|
|
|
|
*/
|
|
|
|
void HideMapObjectEx(Int32 model, Float32 x, Float32 y, Float32 z);
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Make a map object invisible.
|
|
|
|
*/
|
|
|
|
void HideMapObjectRaw(Int32 model, Int16 x, Int16 y, Int16 z);
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Make a map object visible again.
|
|
|
|
*/
|
|
|
|
void ShowMapObject(Int32 model, const Vector3 & pos);
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Make a map object visible again.
|
|
|
|
*/
|
|
|
|
void ShowMapObjectEx(Int32 model, Float32 x, Float32 y, Float32 z);
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Make a map object visible again.
|
|
|
|
*/
|
|
|
|
void ShowMapObjectRaw(Int32 model, Int16 x, Int16 y, Int16 z);
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Make all map objects visible again.
|
|
|
|
*/
|
|
|
|
void ShowAllMapObjects(void);
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve field data of a certain weapon.
|
|
|
|
*/
|
|
|
|
SQFloat GetWeaponDataValue(Int32 weapon, Int32 field);
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Modify field data of a certain weapon.
|
|
|
|
*/
|
|
|
|
bool SetWeaponDataValue(Int32 weapon, Int32 field, SQFloat value);
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Reset field data of a certain weapon.
|
|
|
|
*/
|
|
|
|
bool ResetWeaponDataValue(Int32 weapon, Int32 field);
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* See whether field data of a certain weapon was modified.
|
|
|
|
*/
|
|
|
|
bool IsWeaponDataValueModified(Int32 weapon, Int32 field);
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Reset all fields data of a certain weapon.
|
|
|
|
*/
|
|
|
|
bool ResetWeaponData(Int32 weapon);
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Reset all fields data of a all weapons.
|
|
|
|
*/
|
|
|
|
void ResetAllWeaponData();
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Create a new player class.
|
|
|
|
*/
|
|
|
|
Int32 AddPlayerClass(Int32 team, const Color3 & color, Int32 skin, const Vector3 & pos, Float32 angle,
|
|
|
|
Int32 wep1, Int32 ammo1, Int32 wep2, Int32 ammo2, Int32 wep3, Int32 ammo3);
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Set the player position when spawning.
|
|
|
|
*/
|
|
|
|
void SetSpawnPlayerPosition(const Vector3 & pos);
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Set the camera position when spawning.
|
|
|
|
*/
|
|
|
|
void SetSpawnCameraPosition(const Vector3 & pos);
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Set the camera focus when spawning.
|
|
|
|
*/
|
|
|
|
void SetSpawnCameraLookAt(const Vector3 & pos);
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Set the player position when spawning.
|
|
|
|
*/
|
|
|
|
void SetSpawnPlayerPositionEx(Float32 x, Float32 y, Float32 z);
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Set the camera position when spawning.
|
|
|
|
*/
|
|
|
|
void SetSpawnCameraPositionEx(Float32 x, Float32 y, Float32 z);
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Set the camera focus when spawning.
|
|
|
|
*/
|
|
|
|
void SetSpawnCameraLookAtEx(Float32 x, Float32 y, Float32 z);
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Ban an IP address from the server.
|
|
|
|
*/
|
2019-02-17 16:23:59 +01:00
|
|
|
void BanIP(StackStrF & addr);
|
2016-05-22 05:20:38 +02:00
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Unban an IP address from the server.
|
|
|
|
*/
|
2019-02-17 16:23:59 +01:00
|
|
|
bool UnbanIP(StackStrF & addr);
|
2016-05-22 05:20:38 +02:00
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* See if an IP address is banned from the server.
|
|
|
|
*/
|
2019-02-17 16:23:59 +01:00
|
|
|
bool IsIPBanned(StackStrF & addr);
|
2016-05-22 05:20:38 +02:00
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the identifier of the player with the specified name.
|
|
|
|
*/
|
2019-02-17 16:23:59 +01:00
|
|
|
Int32 GetPlayerIdFromName(StackStrF & name);
|
2016-05-22 05:20:38 +02:00
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* See if a player with the specified identifier is connected.
|
|
|
|
*/
|
|
|
|
bool IsPlayerConnected(Int32 player_id);
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Force all players on the server to select a class.
|
|
|
|
*/
|
|
|
|
void ForceAllSelect();
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* See if an entity exists on the server.
|
|
|
|
*/
|
|
|
|
bool CheckEntityExists(Int32 type, Int32 index);
|
2015-09-30 02:56:11 +02:00
|
|
|
|
2016-07-27 22:34:56 +02:00
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* See if a certain point is within a known district on the bas game map.
|
|
|
|
*/
|
|
|
|
CSStr GetDistrictName(const Vector2 & point);
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* See if a certain point is within a known district on the bas game map.
|
|
|
|
*/
|
|
|
|
CSStr GetDistrictNameEx(SQFloat x, SQFloat y);
|
|
|
|
|
2018-06-28 21:15:38 +02:00
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the fall timer rate.
|
|
|
|
*/
|
|
|
|
Uint16 GetFallTimer();
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Modify the fall timer rate.
|
|
|
|
*/
|
|
|
|
void SetFallTimer(Uint16 rate);
|
|
|
|
|
2019-08-15 15:46:11 +02:00
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve network statistics related to the server.
|
|
|
|
*/
|
|
|
|
SQFloat GetNetworkStatisticsF(Int32 option_id);
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve network statistics related to the server.
|
|
|
|
*/
|
|
|
|
SQInteger GetNetworkStatisticsI(Int32 option_id);
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-09-30 02:56:11 +02:00
|
|
|
} // Namespace:: SqMod
|
|
|
|
|
2016-02-20 23:25:00 +01:00
|
|
|
#endif // _MISC_FUNCTIONS_HPP_
|