SRB2 Message Board  

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

Reply
 
Thread Tools Search this Thread
Old 09-05-2017   #61
Rumia1
worries too much
 
Rumia1's Avatar
Default

I figured as much, but I don't know how exactly to fix it or what to suplement in to account for friction.
__________________
Quote:
Originally Posted by Cirno
Egguman-senpai...
Rumia1 is offline   Reply With Quote
Old 09-05-2017   #62
Zwip-Zwap Zapony
Please just call me Zappy.
 
Zwip-Zwap Zapony's Avatar
Default

Quote:
Originally Posted by Rumia1 View Post
I figured as much, but I don't know how exactly to fix it or what to suplement in to account for friction.
If it's a "mach speed" section, you might be able to just force the speed of the player object (so decreasing it if it gets too high), rather than just keeping it from getting low or something.

If it's just a normal gameplay section, then it's just a universal slope-related issue with low friction values, which should be taken into account by the character's creator (but is hard to do much about while still keeping legitimate high speed possible, as there's not any slope-related Lua stuff available yet, so one can't check how steep a slope is very easily).

In the latter case, it's basically just not really your fault, though you could avoid it by making the slope physics-less by changing a linedef flag for the slope, but then normal-friction characters won't get a little more or less speed from running down or up the slope, respectively.
Zwip-Zwap Zapony is offline   Reply With Quote
Old 09-11-2017   #63
Rumia1
worries too much
 
Rumia1's Avatar
Default

Is there any way for the player to destroy enemies by touching them that doesn't involve using invincibility?
__________________
Quote:
Originally Posted by Cirno
Egguman-senpai...
Rumia1 is offline   Reply With Quote
Old 09-11-2017   #64
742mph
I make Sonic look like me
 
742mph's Avatar
Default

Quote:
Originally Posted by Rumia1 View Post
Is there any way for the player to destroy enemies by touching them that doesn't involve using invincibility?
You can script a way yourself using the TouchSpecial Lua hook.
__________________
Quote:
<Evilgasm> the opposite of egoraptor is Toa Tahu

Last edited by 742mph; 09-12-2017 at 01:59 AM.
742mph is offline   Reply With Quote
Old 3 Weeks Ago   #65
Rumia1
worries too much
 
Rumia1's Avatar
Default

How do I allow the player to jump while the race countdown is going?

EDIT:Also, how can I check what the friction is of the sector a player is in?
__________________
Quote:
Originally Posted by Cirno
Egguman-senpai...

Last edited by Rumia1; 3 Weeks Ago at 10:41 PM.
Rumia1 is offline   Reply With Quote
Old 3 Weeks Ago   #66
jameds
Default

You can't.

In p_user.c:8801:
Code:
if ((gametype == GT_RACE || gametype == GT_COMPETITION) && leveltime < 4*TICRATE)
{
        cmd->buttons &= BT_USE; // Remove all buttons except BT_USE
        cmd->forwardmove = 0;
        cmd->sidemove = 0;
}
Friction is implemented with thinkers that set the friction of all mobjs in their sector.
Therefore, the sector friction would be the mobj's minus the default (see https://wiki.srb2.org/wiki/Lua/Userd...uctures#mobj_t)

Last edited by jameds; 3 Weeks Ago at 11:39 PM.
jameds 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 02:30 AM.


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