// Plutonium T6 Exclusive Builtins /@ [DESCRIPTION]: Returns a function pointer based on and ; Does not trigger compilation or resolving of the script, therefore if the script isn't referenced by an include or far call at least once it will fail to find the function and return undefined.; [CALL_TYPE]: function; [USAGE]: func = getfunction( , ); [PARAMS]: ARG1: ARG2:; [PARAMS_NOTES]: Path must use forward slashes to denote the path; [RETURNS]: or ; @/ getfunction( path, func_name ) { return getfunction( path, func_name ); } /@ [DESCRIPTION]: Used inside a function with a hook applied to it by replacefunc. When called resumes execution of the original function starting at the top. Unlike removedetour the hook is reenabled automatically when the function exits.; [CALL_TYPE]: function; [USAGE]: disabledetouronce(); [PARAMS]: NONE; [PARAMS_NOTES]: NONE; [RETURNS]: NONE; [ERRORS]: 1. Must be called inside a function that had a hook applied to it by replacefunc.; @/ disabledetouronce() { disabledetouronce(); } /@ [DESCRIPTION]: Takes in and returns the function pointer it was detoured to or returns undefined if was not hooked at the time of calling getdetour.; [CALL_TYPE]: function; [USAGE]: getdetour( ); [PARAMS]: ARG1:; [PARAMS_NOTES]: NONE; [RETURNS]: or ; @/ getdetour( func ) { return getdetour( func ); } /@ [DESCRIPTION]: Returns an array of pathnodes based on the caller node's path links. Returns an empty array if no links exist for caller node; [CALL_TYPE]: method; [USAGE]: self getlinkednodes(); [PARAMS]: ARG0:; [PARAMS_NOTES]: NONE; [RETURNS]: ; @/ getlinkednodes() { return self getlinkednodes(); } /@ [DESCRIPTION]: Sends a personal chat message to caller player. Applies ^7 and sv_sayName dvar's value to start of message unless sv_sayName dvar's value is blank in which case the message is not modified before being sent to the client.; [CALL_TYPE]: method; [USAGE]: self tell( ); [PARAMS]: ARG0: ARG1:; [PARAMS_NOTES]: NONE; [RETURNS]: NONE; @/ tell( message ) { self tell( message ); } /@ [DESCRIPTION]: Sends a chat message to all players. Applies ^7 and sv_sayName dvar's value to start of message unless sv_sayName dvar's value is blank in which case the message is not modified before being sent to the client.; [CALL_TYPE]: method; [USAGE]: self tell( ); [PARAMS]: ARG1:; [PARAMS_NOTES]: NONE; [RETURNS]: NONE; @/ say( message ) { say( message ); } // The following are bot specifc builtins /@ [BOT_BUTTON_TYPES]: { "attack", "sprint", "melee", "activate", "reload", "usereload", "gostand", "frag", "smoke", "holdbreath", "crouch", "prone", "leanleft", "leanright", "vehicleboost", "stance", "switchseat", "throwback", "throw", "handbrake", "reverse", "jam", "vehiclemovedown", "vehiclemoveup", "vehicleattacksecond", "vehicleattack", "ads", "actionslot 1", "actionslot 2", "actionslot 3", "actionslot 4" }; [BOT_BUTTON_VALUES]: { "enable", "disable" }; @/ /@ [DESCRIPTION]: Allows bot to melee lunge at entity with and to control the lunge distance when bot activates melee. is hard capped to values between 0 and 255.; [CALL_TYPE]: method; [USAGE]: self botmeleeparams( , ); [PARAMS]: ARG0: ARG1: ARG2:; [PARAMS_NOTES]: NONE; [RETURNS]: NONE; @/ botmeleeparams( ent_num, dist ) { self botmeleeparams( ent_num, dist ); } /@ [DESCRIPTION]: Toggles off melee lunging for bot and clears the current dist and ent_num set by botmeleeparams.; [CALL_TYPE]: method; [USAGE]: self botclearmeleeparams(); [PARAMS]: ARG0:; [PARAMS_NOTES]: NONE; [RETURNS]: NONE; @/ botclearmeleeparams() { self botclearmeleeparams(); } /@ [DESCRIPTION]: Overrides caller bot's forward and right movement until botclearmoveoverride is called on caller bot. Values are between -127 for fully backwards and left, and fully 128 for forwards and right. Bot effectively simulates analog movement where max absolute values mean maximum speed and 0 no movement in that direction at all.; [CALL_TYPE]: method; [USAGE]: self botmovementoverride( , ); [PARAMS]: ARG0: ARG1: ARG2:; [PARAMS_NOTES]: NONE; [RETURNS]: NONE; @/ botmovementoverride( forward, right ) { self botmovementoverride( forward, right ); } /@ [DESCRIPTION]: Toggles off a movement override and resets forward and right values for caller bot.; [CALL_TYPE]: method; [USAGE]: self botclearmovementoverride(); [PARAMS]: ARG0:; [PARAMS_NOTES]: NONE; [RETURNS]: NONE; @/ botclearmovementoverride() { self botclearmovementoverride(); } /@ [DESCRIPTION]: Causes caller bot to press and hold