SRB2 Message Board  

Go Back   SRB2 Message Board > Sonic Robo Blast 2 > Editing > Editing Help

Reply
 
Thread Tools Search this Thread
Old 08-05-2017   #1
LunarDestroyer
 
LunarDestroyer's Avatar
Default Ticcmd, and overriding player input

Does modifying any of the ticcmd variables for a player actually do anything? I've tried it both in the thinkframe and mobjthinker hooks, and the most I've managed is half-preventing a player from moving forwards (they're still able to move slightly). Is there any means of completely overriding a player's input with something else (thus, forcing them to perform a specific action)?
LunarDestroyer is offline   Reply With Quote
Old 08-09-2017   #2
LunarDestroyer
 
LunarDestroyer's Avatar
Default

This is a completely unrelated question, but I do want to bump this to make sure it doesn't get lost: Is there a way to check the current value of a given console command? For example, if I wanted to run a certain bit of code depending on if chasecam was set to on or off, or something like that.
LunarDestroyer is offline   Reply With Quote
Old 08-09-2017   #3
"Lat'"
AAAAAAAAAAAAAAAAAAA
 
"Lat'"'s Avatar
Default

While I have no idea on what to do about your first question, sadly it's impossible to check for the current variable of console variables (which is pretty awful), but you can check for chasecam in a hud hook like this since it takes the camera as third argument

Code:
hud.add(function(v, p, c)
 if c.chase then do stuff end
end)
__________________
Quote:
Originally Posted by Bronydude2k5 View Post
If you make me a Sash Lilac wad, I'll make you a sonic sprite hack of any choice.
"Lat'" is online now   Reply With Quote
Old 08-09-2017   #4
LunarDestroyer
 
LunarDestroyer's Avatar
Default

Well, that basically works for what I'm trying to do (that being forcing first-person). Having to check inside of a hud hook means having to do complicated workarounds, but whatever. Thanks.
LunarDestroyer is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:07 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.