Phasor
01.00.10.059
|
All functions Phasor provides are described here. More...
Namespaces | |
namespace | halo |
namespace | odl |
Functions | |
void | l_alias_search (PHASOR_API_ARGS) |
Executes sv_alias_search and provides a callback for returning results. | |
void | l_alias_hash (PHASOR_API_ARGS) |
Executes sv_alias_hash and provides a callback for returning results. | |
void | odl::setData (halo::damage_script_options *opts_, halo::s_damage_info *dmg, const halo::ident &receiver) |
void | odl::reset () |
void | l_odl_causer (PHASOR_API_ARGS) |
Sets the casuer of the damage to the specified object. | |
void | l_odl_receiver (PHASOR_API_ARGS) |
Sets the receiver of the damage to the specified object. | |
void | l_odl_tag (PHASOR_API_ARGS) |
Can be used to change the type of damage which is being applied. | |
void | l_odl_multiplier (PHASOR_API_ARGS) |
Can be used to change the amount of damage being done. | |
void | l_odl_flags (PHASOR_API_ARGS) |
Read/Write data to the flags used in damage lookup. | |
void | l_getobject (PHASOR_API_ARGS) |
Get the memory address for the specified object. | |
void | l_getobjectcoords (PHASOR_API_ARGS) |
Get the specified object's location in the map. | |
void | l_objectaddrtoplayer (PHASOR_API_ARGS) |
Find which player the specified memory address belongs to. | |
void | l_objectidtoplayer (PHASOR_API_ARGS) |
Find which player the specified object id belongs to. | |
void | l_createobject (PHASOR_API_ARGS) |
Creates an ingame object. | |
void | l_destroyobject (PHASOR_API_ARGS) |
Destroys the specified objects. | |
void | l_assignweapon (PHASOR_API_ARGS) |
Gives and equips the specified weapon to the specified player. | |
void | l_entervehicle (PHASOR_API_ARGS) |
Forces the specified player into the specified vehicle. | |
void | l_isinvehicle (PHASOR_API_ARGS) |
Checks whether the specified player is in a vehicle. | |
void | l_exitvehicle (PHASOR_API_ARGS) |
Forces the specified player to leave their current vehicle. | |
void | l_movobjectcoords (PHASOR_API_ARGS) |
Moves the specified object to the specified coordinates. | |
void | l_gettagid (PHASOR_API_ARGS) |
Gets the map id of the specified tag. | |
void | l_gettaginfo (PHASOR_API_ARGS) |
Gets the tag type and tag name of the specified tag (map) id. | |
void | l_gettagaddress (PHASOR_API_ARGS) |
Gets the specified tag's memory address. | |
void | l_applydmg (PHASOR_API_ARGS) |
Applies damage to the specified object. | |
void | l_applydmgtag (PHASOR_API_ARGS) |
Applies a damage tag to the specified object. | |
void | l_halointersect (PHASOR_API_ARGS) |
Checks if the specified vector intersects anything. | |
void | l_readbit (PHASOR_API_ARGS) |
Reads a bit from the specified memory address. | |
void | l_readbyte (PHASOR_API_ARGS) |
Reads a byte from the specified memory address. | |
void | l_readchar (PHASOR_API_ARGS) |
Reads a char from the specified memory address. | |
void | l_readword (PHASOR_API_ARGS) |
Reads a word from the specified memory address. | |
void | l_readshort (PHASOR_API_ARGS) |
Reads a short from the specified memory address. | |
void | l_readdword (PHASOR_API_ARGS) |
Reads a dword from the specified memory address. | |
void | l_readint (PHASOR_API_ARGS) |
Reads an int from the specified memory address. | |
void | l_readfloat (PHASOR_API_ARGS) |
Reads a float from the specified memory address. | |
void | l_readdouble (PHASOR_API_ARGS) |
Reads a double from the specified memory address. | |
void | l_readstring (PHASOR_API_ARGS) |
Reads a string from the specified memory address. | |
void | l_readwidestring (PHASOR_API_ARGS) |
Reads a wide string from the specified memory address. | |
void | l_writebit (PHASOR_API_ARGS) |
Writes a bit to the specified memory address. | |
void | l_writebyte (PHASOR_API_ARGS) |
Writes a byte to the specified memory address. | |
void | l_writechar (PHASOR_API_ARGS) |
Writes a char to the specified memory address. | |
void | l_writeword (PHASOR_API_ARGS) |
Writes a word to the specified memory address. | |
void | l_writeshort (PHASOR_API_ARGS) |
Writes a short to the specified memory address. | |
void | l_writedword (PHASOR_API_ARGS) |
Writes a dword to the specified memory address. | |
void | l_writeint (PHASOR_API_ARGS) |
Writes an int to the specified memory address. | |
void | l_writefloat (PHASOR_API_ARGS) |
Writes a float to the specified memory address. | |
void | l_writedouble (PHASOR_API_ARGS) |
Writes a double to the specified memory address. | |
void | l_writestring (PHASOR_API_ARGS) |
Writes a string to the specified memory address. | |
void | l_writewidestring (PHASOR_API_ARGS) |
Writes a wide string to the specified memory address. | |
void | l_getticks (PHASOR_API_ARGS) |
Get the current cpu ticks. | |
void | l_getrandomnumber (PHASOR_API_ARGS) |
Generate a random number in the given range. | |
void | l_changeteam (PHASOR_API_ARGS) |
Changes the specified player's team. | |
void | l_kill (PHASOR_API_ARGS) |
Kill the specified player. | |
void | l_applycamo (PHASOR_API_ARGS) |
Gives the specified player active camo for a specified duration. | |
void | l_svcmd (PHASOR_API_ARGS) |
Executes a server command. | |
void | l_svcmdplayer (PHASOR_API_ARGS) |
Executes a server command as the specified player. | |
void | l_updateammo (PHASOR_API_ARGS) |
Forcibly sync the specified weapon's ammo counts. | |
void | l_setammo (PHASOR_API_ARGS) |
Set a weapon's ammo and forcibly sync. | |
void | l_setspeed (PHASOR_API_ARGS) |
Set the specified player's speed. | |
void | l_getprofilepath (PHASOR_API_ARGS) |
Gets halo's data directory (where banned.txt is stored) | |
void | l_getservername (PHASOR_API_ARGS) |
Gets the server's current name. | |
void | l_hprintf (PHASOR_API_ARGS) |
Outputs a string to the server console. | |
void | l_say (PHASOR_API_ARGS) |
Sends a chat message to the entire server. | |
void | l_privatesay (PHASOR_API_ARGS) |
Sends a chat message to the specified player. | |
void | l_sendconsoletext (PHASOR_API_ARGS) |
Sends the specified player a console message. | |
void | l_respond (PHASOR_API_ARGS) |
Responds to the person executing the current command. | |
void | l_log_msg (PHASOR_API_ARGS) |
Sends output to the specified logging stream. | |
void | l_resolveplayer (PHASOR_API_ARGS) |
Resolve a player's memory id to their rcon id. | |
void | l_rresolveplayer (PHASOR_API_ARGS) |
Resolve a player's rcon id to their memory id. | |
void | l_getplayer (PHASOR_API_ARGS) |
Get the specified player's memory data. | |
void | l_getip (PHASOR_API_ARGS) |
Get the specified player's ip address. | |
void | l_getport (PHASOR_API_ARGS) |
Get the specified player's network port. | |
void | l_getteam (PHASOR_API_ARGS) |
Get the specified player's team. | |
void | l_getname (PHASOR_API_ARGS) |
Get the specified player's name. | |
void | l_gethash (PHASOR_API_ARGS) |
Get the specified player's hash. | |
void | l_getteamsize (PHASOR_API_ARGS) |
Get the number of players on the specified team. | |
void | l_getplayerobjectid (PHASOR_API_ARGS) |
Get the specified player's object id. | |
void | l_isadmin (PHASOR_API_ARGS) |
Checks if the specified player is an admin. | |
void | l_getadminlvl (PHASOR_API_ARGS) |
Returns the admins level, or nil if not an admin. | |
void | l_setadmin (PHASOR_API_ARGS) |
Sets the specified player as an admin for the duration of the current game, or until the player leaves. | |
void | l_raiseerror (PHASOR_API_ARGS) |
Raises an error to Phasor's scripting subsystem. | |
void | l_registertimer (PHASOR_API_ARGS) |
Registers a timer which is called when it expires. | |
void | l_removetimer (PHASOR_API_ARGS) |
Removes a currently registered timer. | |
void | l_tokenizestring (PHASOR_API_ARGS) |
Tokenizes (splits) an input string at specified delimiters. | |
void | l_tokenizecmdstring (PHASOR_API_ARGS) |
Tokenizes (splits) an input string into distinct words, which are either separated by a space or enclosed in " ". | |
All functions Phasor provides are described here.
Ignore the l_
infront of function names, that's just how I name them within my code. You don't use that when calling the functions.
Note: When I say "raise an error" it means that an error will be raised, and this error will be treated in the same way as other Lua errors. The calling function will get blacklisted.
Deprecated (removed) functions:
gettoken
, gettokencount
, getcmdtoken
and getcmdtokencount
have been removed.tokenizestring
and tokenizecmdstring
respectively.lookuptag
has been deprecated. Instead you should use gettagid
or gettagaddress
Changed functions:
hprintf
no longer sends console text to the player executing rcon.respond
to reply to rcon events.sendconsoletext
and therefore still works.getplayer
will raise an error if you pass an invalid player.getplayer
, which returns nil
if they don'tgetobject
will raise an error if you pass an invalid object.OnPlayerJoin
no longer receives the player's team.For more detailed information about the changes to specific groups of functions you should see Files/PhasorAPI and view the relevant file:
alias_script.h haloobjects.h memory.h misc.h misc_halo.h output.h playerinfo.h scripttimers.h string.h
void l_alias_hash | ( | PHASOR_API_ARGS | ) |
Executes sv_alias_hash and provides a callback for returning results.
hash | The hash to search for. |
callback | The name of a function to call when results are ready. |
Example usage:
void l_alias_search | ( | PHASOR_API_ARGS | ) |
Executes sv_alias_search and provides a callback for returning results.
query | The player to search for, see sv_alias_search for details. |
callback | The name of a function to call when results are ready. |
Example usage:
void l_applycamo | ( | PHASOR_API_ARGS | ) |
Gives the specified player active camo for a specified duration.
player | The player's memory id |
duration | Duration of the camo, in seconds. |
Example usage:
void l_applydmg | ( | PHASOR_API_ARGS | ) |
Applies damage to the specified object.
receiver | object id of the object which will receive the damage. |
multiplier | real number indicating how much damage to apply. |
[causer] | object id of the object to attribute the damage to. |
[flags] | damage flags to use (see odl_flags) |
Example usage:
void l_applydmgtag | ( | PHASOR_API_ARGS | ) |
Applies a damage tag to the specified object.
receiver | object id of the object which will receive the damage. |
dmg_tag | tag id of the damage tag to apply. |
[multiplier] | real number indicating the damage multiplier (default 1.0) |
[causer] | object id of the object to attribute the damage to. |
[flags] | damage flags to use (see odl_flags) |
Example usage:
void l_assignweapon | ( | PHASOR_API_ARGS | ) |
Gives and equips the specified weapon to the specified player.
player | The player to assign the weapon to. |
weapId | The id of the weapon to assign. |
Example usage:
void l_changeteam | ( | PHASOR_API_ARGS | ) |
Changes the specified player's team.
player | The player's memory id. |
forcekill | Boolean indicating whether or not to kill the player. |
[team] | The player's new team (optional) |
Example usage:
void l_createobject | ( | PHASOR_API_ARGS | ) |
Creates an ingame object.
tag_id | The id of the tag describing the object to create. |
parentId | The object id to assign as the new one's parent. |
respawnTime | Number of seconds to wait before respawning the object. |
do_respawn | Boolean indicating whether or not the object should respawn. |
x | The object's x coordinate. |
y | The object's y coordinate. |
z | The object's z coordinate. |
nil
on failure.parentId
to 0. You won't care about this most of the time.do_respawn
indicates whether or not the object should respawn (go to spawn coordinates) or whether it should be destroyed.do_respawn
is ignored when creating equipment or weapons. They are always destroyed.Example usage:
void l_destroyobject | ( | PHASOR_API_ARGS | ) |
Destroys the specified objects.
objid | The id of the object to destroy. |
objid
is not a valid object id, an error is raised.Example usage:
void l_entervehicle | ( | PHASOR_API_ARGS | ) |
Forces the specified player into the specified vehicle.
player | The player to make enter the vehicle. |
vehicleid | The object id of the vehicle the player is to enter. |
seat | The seat the player should enter. |
Example usage:
void l_exitvehicle | ( | PHASOR_API_ARGS | ) |
Forces the specified player to leave their current vehicle.
player | The player to eject from their vehicle. |
Example usage:
void l_getadminlvl | ( | PHASOR_API_ARGS | ) |
Returns the admins level, or nil
if not an admin.
player | The player's memory id. |
nil
if not admin.Example usage:
void l_gethash | ( | PHASOR_API_ARGS | ) |
Get the specified player's hash.
player | The player's memory id. |
Example usage:
void l_getip | ( | PHASOR_API_ARGS | ) |
Get the specified player's ip address.
player | The player's memory id. |
Example usage:
void l_getname | ( | PHASOR_API_ARGS | ) |
Get the specified player's name.
player | The player's memory id. |
Example usage:
void l_getobject | ( | PHASOR_API_ARGS | ) |
Get the memory address for the specified object.
object_id | The object's id |
nil
if the specified id is invalid.Example usage:
void l_getobjectcoords | ( | PHASOR_API_ARGS | ) |
Get the specified object's location in the map.
object_id | The object's id |
Example usage:
void l_getplayer | ( | PHASOR_API_ARGS | ) |
Get the specified player's memory data.
player | The player's memory id. |
Example usage:
void l_getplayerobjectid | ( | PHASOR_API_ARGS | ) |
Get the specified player's object id.
player | The player's memory id. |
Example usage:
void l_getport | ( | PHASOR_API_ARGS | ) |
Get the specified player's network port.
player | The player's memory id. |
Example usage:
Example output:
Player with ip:port 127.0.0.1:2302
void l_getprofilepath | ( | PHASOR_API_ARGS | ) |
Gets halo's data directory (where banned.txt is stored)
Example usage:
void l_getrandomnumber | ( | PHASOR_API_ARGS | ) |
Generate a random number in the given range.
min | The minimum value to generate (inclusive) |
max | The maximum value to generate (exclusive) |
Example usage:
void l_getservername | ( | PHASOR_API_ARGS | ) |
Gets the server's current name.
Exampe usage:
void l_gettagaddress | ( | PHASOR_API_ARGS | ) |
Gets the specified tag's memory address.
tagid | The id of the tag whose address is to be found. |
lookuptag
which has been deprecated.Example usage:
void l_gettagid | ( | PHASOR_API_ARGS | ) |
Gets the map id of the specified tag.
tagType | The type of the tag |
tagName | The name of the tag |
nil
if not found.Example usage:
void l_gettaginfo | ( | PHASOR_API_ARGS | ) |
Gets the tag type and tag name of the specified tag (map) id.
tagid | The tag id to lookup. |
tag_name
, tag_type
OnNewGame
Example usage:
void l_getteam | ( | PHASOR_API_ARGS | ) |
Get the specified player's team.
player | The player's memory id. |
Example usage:
void l_getteamsize | ( | PHASOR_API_ARGS | ) |
void l_getticks | ( | PHASOR_API_ARGS | ) |
Get the current cpu ticks.
Example usage:
void l_halointersect | ( | PHASOR_API_ARGS | ) |
Checks if the specified vector intersects anything.
dist | the direction vector is multiplied by this value, the intersection test stops after the result of this product. |
x | x coordinate for start of ray. |
y | y coordinate for start of ray. |
z | z coordinate for start of ray. |
vx | x direction for ray. |
vy | y direction for ray. |
vz | z direction for ray. |
[objid] | id of object to ignore during collision tests |
objid
as the player's object id. This will ensure they are ignored from collision tests, and the ray will not intersect with them (otherwise it will be trapped in their head).hit
is set if the ray intersects with something (wall, obj etc)x
,, is the hit location.obj
is the object id of the first object hit, or nil
if none.Example usage:
void l_hprintf | ( | PHASOR_API_ARGS | ) |
Outputs a string to the server console.
str | The string to print. |
Example usage:
void l_isadmin | ( | PHASOR_API_ARGS | ) |
Checks if the specified player is an admin.
player | The player's memory id. |
Example usage:
void l_isinvehicle | ( | PHASOR_API_ARGS | ) |
Checks whether the specified player is in a vehicle.
player | The player to check. |
Example usage:
void l_kill | ( | PHASOR_API_ARGS | ) |
Kill the specified player.
player | The player's memory id. |
Example usage:
void l_log_msg | ( | PHASOR_API_ARGS | ) |
Sends output to the specified logging stream.
id | The id of the logging stream to write to. |
str | The message to log. |
Valid log ids are as follows:
1 - Game log
2 - Phasor log
3 - Rcon log
4 - Script log
Example usage:
The above example will output "<name of player 4> won the game!" to the game log. If player 4 is called Oxide then "Oxide won the game" would be saved.
void l_movobjectcoords | ( | PHASOR_API_ARGS | ) |
Moves the specified object to the specified coordinates.
objid | The id of the object to move. |
x | The x coordinate to move the object to. |
y | The y coordinate to move the object to. |
z | The z coordinate to move the object to. |
writebit
(m_obj + 0x10, 5, 1)Example usage:
void l_objectaddrtoplayer | ( | PHASOR_API_ARGS | ) |
Find which player the specified memory address belongs to.
m_object | The object's memory address |
nil
if not found.Example usage:
void l_objectidtoplayer | ( | PHASOR_API_ARGS | ) |
Find which player the specified object id belongs to.
m_objectId | The object's id |
nil
if not found.Example usage:
void l_odl_causer | ( | PHASOR_API_ARGS | ) |
Sets the casuer of the damage to the specified object.
id | object id to attribute damage to. Can be 0xFFFFFFFF to specify that no object is causing the damage. |
Example usage:
void l_odl_flags | ( | PHASOR_API_ARGS | ) |
Read/Write data to the flags used in damage lookup.
bit_offset | The offset (starting at 0) to access. |
[new_value] | The new value for the specified bit. |
nil
otherwise.Example usage:
void l_odl_multiplier | ( | PHASOR_API_ARGS | ) |
Can be used to change the amount of damage being done.
dmg | A real number representing the damage multiplier. |
Example usage:
void l_odl_receiver | ( | PHASOR_API_ARGS | ) |
Sets the receiver of the damage to the specified object.
id | object id to attribute damage to. |
Example usage:
void l_odl_tag | ( | PHASOR_API_ARGS | ) |
Can be used to change the type of damage which is being applied.
id | object id of the damage tag to apply. |
id
is not a damage (jpt!) tag.Example usage:
void l_privatesay | ( | PHASOR_API_ARGS | ) |
Sends a chat message to the specified player.
player_id | The memory id of the player to message. |
str | The message to send. |
[prepend] | boolean indicating whether or not to prepend ** SERVER ** (default true) |
Example usage:
void l_raiseerror | ( | PHASOR_API_ARGS | ) |
Raises an error to Phasor's scripting subsystem.
desc | A string describing the error you are raising. |
Example usage:
void l_readbit | ( | PHASOR_API_ARGS | ) |
Reads a bit from the specified memory address.
base_address | The base address to use. |
[address_offset] | The offset relative to base_address. |
bit_offset | Which bit to read (starting at 0) |
Example usage:
void l_readbyte | ( | PHASOR_API_ARGS | ) |
Reads a byte from the specified memory address.
base_address | The base address to use. |
[address_offset] | The offset relative to base_address. |
Example usage:
void l_readchar | ( | PHASOR_API_ARGS | ) |
Reads a char from the specified memory address.
base_address | The base address to use. |
[address_offset] | The offset relative to base_address. |
Example usage:
void l_readdouble | ( | PHASOR_API_ARGS | ) |
Reads a double from the specified memory address.
base_address | The base address to use. |
[address_offset] | The offset relative to base_address. |
Example usage:
void l_readdword | ( | PHASOR_API_ARGS | ) |
Reads a dword from the specified memory address.
base_address | The base address to use. |
[address_offset] | The offset relative to base_address. |
Example usage:
void l_readfloat | ( | PHASOR_API_ARGS | ) |
Reads a float from the specified memory address.
base_address | The base address to use. |
[address_offset] | The offset relative to base_address. |
Example usage:
void l_readint | ( | PHASOR_API_ARGS | ) |
Reads an int from the specified memory address.
base_address | The base address to use. |
[address_offset] | The offset relative to base_address. |
Example usage:
void l_readshort | ( | PHASOR_API_ARGS | ) |
Reads a short from the specified memory address.
base_address | The base address to use. |
[address_offset] | The offset relative to base_address. |
Example usage:
void l_readstring | ( | PHASOR_API_ARGS | ) |
Reads a string from the specified memory address.
address | The memory address to read from. |
[length] | The number of characters to read. |
void l_readwidestring | ( | PHASOR_API_ARGS | ) |
Reads a wide string from the specified memory address.
address | The memory address to read from. |
[length] | The number of wide characters to read. |
void l_readword | ( | PHASOR_API_ARGS | ) |
Reads a word from the specified memory address.
base_address | The base address to use. |
[address_offset] | The offset relative to base_address. |
Example usage:
void l_registertimer | ( | PHASOR_API_ARGS | ) |
Registers a timer which is called when it expires.
delay | The delay (in milliseconds) to wait before calling callback . |
callback | A string representing the function to call once the delay expires. |
[userdata] | A variable you want passed to the callback. |
removetimer
registertimer
works slightly differently that it did before. You can only specify one userdata
value, however tables are supported.id
, call_count
and userdata
. id
is the timer's id (same value registertimer returns), call_count
is the number of times this timer has been called (starting at 1) and userdata
is the value passed to registertimer
.Example usage:
void l_removetimer | ( | PHASOR_API_ARGS | ) |
Removes a currently registered timer.
id | The id of the timer to remove. |
id
can be invalid, in which case the call is ignored (no errors are raised)false
. Don't use removetimer.Example usage:
void l_resolveplayer | ( | PHASOR_API_ARGS | ) |
Resolve a player's memory id to their rcon id.
player | The memory id of the player to resolve |
Example usage:
void l_respond | ( | PHASOR_API_ARGS | ) |
Responds to the person executing the current command.
If the server console is executing it, this function acts like hprintf.
If a player is executing it (via rcon), this function acts like sendconsoletext.
str | The message to send. |
Example usage:
void l_rresolveplayer | ( | PHASOR_API_ARGS | ) |
Resolve a player's rcon id to their memory id.
player | The rcon id of the player to resolve. |
Example usage:
void l_say | ( | PHASOR_API_ARGS | ) |
Sends a chat message to the entire server.
str | The message to send. |
[prepend] | boolean indicating whether or not to prepend ** SERVER ** (default true) |
Example usage:
void l_sendconsoletext | ( | PHASOR_API_ARGS | ) |
Sends the specified player a console message.
player_id | The memory id of the player to message. |
str | The message to send. |
Example usage:
void l_setadmin | ( | PHASOR_API_ARGS | ) |
Sets the specified player as an admin for the duration of the current game, or until the player leaves.
player | The player's memory id. |
Example usage:
void l_setammo | ( | PHASOR_API_ARGS | ) |
Set a weapon's ammo and forcibly sync.
weaponId | The memory id of the weapon to sync. |
clip_ammo | How many rounds the weapon's clip should have. |
pack_ammo | How many rounds the weapon has unloaded (not in clip) |
Example usage:
void l_setspeed | ( | PHASOR_API_ARGS | ) |
Set the specified player's speed.
player | The player's memory id |
speed | The player's new speed (1.0 is default) |
Example usage:
void l_svcmd | ( | PHASOR_API_ARGS | ) |
Executes a server command.
cmd | The command to execute |
[result] | Boolean indicating whether or not a result is wanted (see remarks) |
Example usage:
resolveplayer
should be used to convert a memory id into an rcon id.result
is true then all text that would be sent to the executing player will be logged. Once the command has completed it will be returned to you as a table. void l_svcmdplayer | ( | PHASOR_API_ARGS | ) |
Executes a server command as the specified player.
cmd | The command to execute |
player | memory id of the player to execute as. |
[result] | Boolean indicating whether or not a result is wanted (see remarks) |
Example usage:
resolveplayer
should be used to convert a memory id into an rcon id.result
is true then all text that would be sent to the executing player will be logged. Once the command has completed it will be returned to you as a table. void l_tokenizecmdstring | ( | PHASOR_API_ARGS | ) |
Tokenizes (splits) an input string into distinct words, which are either separated by a space or enclosed in " ".
str | The string to tokenize |
Example usage:
Output:
Token 1 is Split Token 2 is at Token 3 is space Token 4 is but not while in quotes Token 5 is ok?
void l_tokenizestring | ( | PHASOR_API_ARGS | ) |
Tokenizes (splits) an input string at specified delimiters.
str | The string to tokenize |
delim | A string of characters to split at. |
Example usage:
Output:
Token 1 is Split Token 2 is at Token 3 is each Token 4 is space Token 5 is and Token 6 is comma
void l_updateammo | ( | PHASOR_API_ARGS | ) |
Forcibly sync the specified weapon's ammo counts.
weaponId | The memory id of the weapon to sync. |
Example usage:
void l_writebit | ( | PHASOR_API_ARGS | ) |
Writes a bit to the specified memory address.
base_address | The base address to use. |
[address_offset] | The offset relative to base_address. |
bit_offset | Which bit to write (starting at 0) |
data | The value to write (1 or 0) |
Example usage:
bit_offset
starts at 0 for the least significant bit void l_writebyte | ( | PHASOR_API_ARGS | ) |
Writes a byte to the specified memory address.
base_address | The base address to use. |
[address_offset] | The offset relative to base_address. |
data | The data to write |
Example usage:
void l_writechar | ( | PHASOR_API_ARGS | ) |
Writes a char to the specified memory address.
base_address | The base address to use. |
[address_offset] | The offset relative to base_address. |
data | The data to write |
Example usage:
void l_writedouble | ( | PHASOR_API_ARGS | ) |
Writes a double to the specified memory address.
base_address | The base address to use. |
[address_offset] | The offset relative to base_address. |
data | The data to write |
Example usage:
void l_writedword | ( | PHASOR_API_ARGS | ) |
Writes a dword to the specified memory address.
base_address | The base address to use. |
[address_offset] | The offset relative to base_address. |
data | The data to write |
Example usage:
void l_writefloat | ( | PHASOR_API_ARGS | ) |
Writes a float to the specified memory address.
base_address | The base address to use. |
[address_offset] | The offset relative to base_address. |
data | The data to write |
Example usage:
void l_writeint | ( | PHASOR_API_ARGS | ) |
Writes an int to the specified memory address.
base_address | The base address to use. |
[address_offset] | The offset relative to base_address. |
data | The data to write |
Example usage:
void l_writeshort | ( | PHASOR_API_ARGS | ) |
Writes a short to the specified memory address.
base_address | The base address to use. |
[address_offset] | The offset relative to base_address. |
data | The data to write |
Example usage:
void l_writestring | ( | PHASOR_API_ARGS | ) |
Writes a string to the specified memory address.
address | The address to write to. |
str | The string to write. |
Example usage:
void l_writewidestring | ( | PHASOR_API_ARGS | ) |
Writes a wide string to the specified memory address.
address | The address to write to. |
str | The string to write. |
Example usage:
void l_writeword | ( | PHASOR_API_ARGS | ) |
Writes a word to the specified memory address.
base_address | The base address to use. |
[address_offset] | The offset relative to base_address. |
data | The data to write |
Example usage:
void odl::reset | ( | ) |
void odl::setData | ( | halo::damage_script_options * | opts_, |
halo::s_damage_info * | dmg, | ||
const halo::ident & | receiver | ||
) |