Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
Ball friction (that time of year again?)
Goto page Previous  1, 2
 
Post new topic   Reply to topic Printable version
 View previous topic  Does Python 2.5 work with AS3? Post :: Post clientset.h What is override  View next topic  
Author Message
Doc Flabby
Server Help Squatter


Joined: Feb 26 2006
Posts: 636
Offline

PostPosted: Sun Mar 09, 2008 12:22 pm    Post subject: Reply to topic Reply with quote

Does anyone know if the ball friction formula unique to continuum, or is it identical to the subspace one? Also at what version of continuum was the ball friction finalised? It may be worthwhile trying to rip the assembly of it, especially now as tool have been provided by snrruub to unpack the (older versions of) continuum exe.
_________________
Rediscover online gaming. Get Subspace | STF The future...prehaps
Back to top
View users profile Send private message Add User to Ignore List
Smong
Server Help Squatter


Joined: 1043048991
Posts: 0x91E
Offline

PostPosted: Sun Mar 09, 2008 12:32 pm    Post subject: Reply to topic Reply with quote

I think cont has it the same or very close. It would have been in 36 since that was in use at the same time as 134/135 so they would have to at least appear to be the same.

I just tweaked my code a bit and now it's coming out within 5px of cont. Only problem is some of the collision code doesn't match exactly, so in that circle in smallmap where there are a lot of corners it occasionally bounces wrong.

Edit1: Ok I'm pretty sure about this now:
Code: Show/Hide
fireball()
{
   ball.frictiontimer = 1000000;
}

// call this per tick
updateball()
{
   if (ball.xspeed || ball.yspeed)
   {
      int workfriction = ball.frictiontimer / 1000;
      ball.xspeed = ball.xspeed * workfriction / 1000;
      ball.yspeed = ball.yspeed * workfriction / 1000;

      ball.frictiontimer -= cfg_friction;
      if (ball.frictiontimer < 0)
         ball.frictiontimer = 0;
   }
}


Edit2: fixed typo.
Edit3: fixed typo.
_________________
ss news
Back to top
View users profile Send private message Add User to Ignore List Visit posters website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> ASSS Questions All times are GMT - 5 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 639 page(s) served in previous 5 minutes.

phpBB Created this page in 0.478670 seconds : 27 queries executed (80.7%): GZIP compression disabled