Onetap v3 Re:Run Javascript callbacks¶
Callbacks that can be registered using Cheat.RegisterCallback()
.
These are identical with normal Onetap v3’s callbacks.
Cheat Events¶
-
CreateMove
()¶ Called everytime a move command is sent to the server.
UserCMD
can be used during this callback.
-
FrameStageNotify
()¶ Called everytime the frame stage changes.
Cheat.FrameStage()
can be used during this callback.
-
Unload
()¶ Called when the javascript is unloaded.
-
Material
()¶ Warning
Undocumented callback.
CS:GO Events¶
You can use all CS:GO events as callbacks.
Event
can be used during these callbacks.
Example:
Cheat.RegisterCallback("player_death", function() {
entity = Entity.GetEntityFromUserID(Event.GetInt("userid"));
Cheat.PrintChat("\x02" + Entity.GetName(entity) + " \x01died!");
});
Special Cheat Events¶
Cheat events which use Event
to distribute their settings.
-
ragebot_fire
()¶ Called everytime the ragebot shoots at an enemy.
Structure:
Name
Type
Description
exploit
integer
0 = no dt, 1 = 1st dt shot or hideshot, 2 = dt
target_index
integer
Entityindex of the target
hitchance
integer
Hitchance of the shot (0-100)
safepoint
integer
Targetting a safepoint
hitbox
integer
Targetted Hitboxindex
Example:
var names = ["disabled", "1st dt shot", "2nd dt shot"] Cheat.RegisterCallback("ragebot_fire", function() { var exploit = Event.GetInt("exploit"); var target = Event.GetInt("target_index"); Cheat.Print("ragebot shot at " + (new Entity(target)).GetName() + " (" + names[exploit] + ")\n"); });
-
player_say
()¶ Called everytime a player says something.
Structure:
Name
Type
Description
userid
integer
User id of the message author
chat
string
Content of the message
Example:
Cheat.RegisterCallback("player_say", function() { var entity = Entities.GetEntityFromUserID(Event.GetInt("userid")); var message = Event.GetString("chat"); Cheat.Print(entity.GetName() + " said " + message); })