BT_FIRE Wont Work.

Tythestickman

Tythestickman

Well-known member
I'm making an useful addon/tool for devs that allow them to easily skip levels just by clicking. But BT_FIRE wont work for some reason. Is it a different key/name?
 
Hmm, I think you used it incorrectly. I'll try to help you. Could you show me some of the code? If there's anything wrong, I'll point it out.
 
You can use the userdata mouse, and then add the constant to define the mouse click you want as well. I hope I was able to help.
 
i been tryna research for over half an hour where in the fuck is the documentation for the Console Buttons to corroborate if "BT_FIRE" was indeed a valid input, but it appears i can't find anything.

I swear i saw that "BT_FIRE" was an actual input command to assign to a script, and i believe i may had saw it once or twice before while datamining long time ago.
 
Hmm, I think you used it incorrectly. I'll try to help you. Could you show me some of the code? If there's anything wrong, I'll point it out.
This is the code.

addHook("PlayerThink", do
for player in players.iterate
if (player.cmd.buttons & BT_FIRE)
player.pflags = $1|PF_FINISHED
G_SetCustomExitVars(mapheaderinfo[gamemap].nextlevel, 1)
end
end
end)
 
Please put "if not (player and player.valid and player.mo and player.mo.valid) then return end" in the code, maybe it will work.
 
I saw the srb2 wiki, the correct form is BT_ATTACK instead of BT_FIRE.
 
I saw the srb2 wiki, the correct form is BT_ATTACK instead of BT_FIRE.
where did you find it? i was trying to find the correct command names for the basic inputs, but i never found them
 
I saw the srb2 wiki, the correct form is BT_ATTACK instead of BT_FIRE.
yo thanks, pretty weird to me that it's attack instead of fire
 
Well, if you want to use BT_FIRE, define rawset(_G,"BT_FIRE",BT_ATTACK) globally, or define local BT_FIRE = BT_ATTACK to use it only in this script, Generally, put it at the top of your script (optional: with a comment to make it look nice), then below, you write your beautiful and magnificent script and then run the script.I remember I used to put a lot of comments in my scripts from my main mod🫠
 
Last edited:
Top