Programming & Scripting

View unanswered posts | View active topics


Post a new topicPost a reply
Previous topic | Next topic 

  Trainee TraineeMember since: 28.06.2008, 05:46Posts: 127Location: UK Likes: 1
 

 Post Topic: Racing lap system / checkpoint system , Hud Text?
PostPosted 09.06.2012, 16:19 
How would i go about creating a lap system in a racing game?.

I have currently got a racing car imported and working , i have tracks created.

I just need some sort of lap system.

To prevent the player cheating , I think it would be ideal to have a method like this

Start>PointA>Drive-100-yards>PointB>Drive-100-yards>PointC>Drive-100-yards>PointD>FinishLine

Repeat.

Anyone ever tried creating something like this?

I would also like on-screen text.

User avatar   Trained Modder Trained ModderMember since: 04.12.2011, 13:56Posts: 273Location: East Sussex, United Kingdom Likes: 7
 

 Post Topic: Re: Racing lap system / checkpoint system , Hud Text?
PostPosted 10.06.2012, 18:06 
Hey,

there is a chat command for Crysis Wars that was similar to that and only worked on Mesa.

It started a Race Session, with goals and all that. If I find it, I´ll let you know.

DoS


Server Side Modding Support
  Trainee TraineeMember since: 28.06.2008, 05:46Posts: 127Location: UK Likes: 1
 

 Post Topic: Re: Racing lap system / checkpoint system , Hud Text?
PostPosted 10.06.2012, 18:27 
Awesome ! Let me know!
User avatar   Trained Modder Trained ModderMember since: 04.12.2011, 13:56Posts: 273Location: East Sussex, United Kingdom Likes: 7
 

 Post Topic: Re: Racing lap system / checkpoint system , Hud Text?
PostPosted 11.06.2012, 14:21 
Okay,

these files contain the code.It´s too long as that I could post it all here and as most lines are pretty long it would be all messed up, I just tried.

I packed it, because the extension .LUA isn´t allowed.

Hope it helps.

DoS

P.S.: I forgot to tell u: I never tested it, so I´m not quite sure whether it actually works, but it should.
Attachments:

Mesa Race.zip
[4.86 KiB]
Downloaded 139 times


Server Side Modding Support
  Beginner BeginnerMember since: 22.01.2013, 00:53Posts: 2 Likes: 0
 

 Post Topic: Re: Racing lap system / checkpoint system , Hud Text?
PostPosted 28.01.2013, 01:21 
for what version AegisX is it ?
User avatar   Trained Modder Trained ModderMember since: 04.12.2011, 13:56Posts: 273Location: East Sussex, United Kingdom Likes: 7
 

 Post Topic: Re: Racing lap system / checkpoint system , Hud Text?
PostPosted 28.01.2013, 11:02 
None, it´s the old SSM AEGIS, not the newer X version.

You´d have to rewrite parts of the code to make it compatible to AEGIS X.

DoS


Server Side Modding Support
  Beginner BeginnerMember since: 22.01.2013, 00:53Posts: 2 Likes: 0
 

 Post Topic: Re: Racing lap system / checkpoint system , Hud Text?
PostPosted 29.01.2013, 04:32 
thanks
User avatar   Trained Modder Trained ModderMember since: 04.12.2011, 13:56Posts: 273Location: East Sussex, United Kingdom Likes: 7
 

 Post Topic: Re: Racing lap system / checkpoint system , Hud Text?
PostPosted 29.01.2013, 18:20 
No problem.


Server Side Modding Support
User avatar   Trainee TraineeMember since: 24.12.2007, 15:56Posts: 108Location: UK Likes: 7
 

 Post Topic: Re: Racing lap system / checkpoint system , Hud Text?
PostPosted 03.05.2013, 22:06 
Quote by DoS:
Hey,

there is a chat command for Crysis Wars that was similar to that and only worked on Mesa.

It started a Race Session, with goals and all that. If I find it, I´ll let you know.

DoS


!race... i made it :) - on our server we stopped using it about a year & a half ago and i was told in the mean time my version of !race was going to be re-done, still haven't seen it myself and i miss the ole !race... i had the idea and wanted to create something simple but fun and it took off, people really liked it...

Some early screen shots below, the race command got better and better then in it's absence i miss it, hopefully it'll return soon, the old chat command thread is below to.

Image

http://www.7oxicity.net/showthread.php?t=229
User avatar   Trained Modder Trained ModderMember since: 04.12.2011, 13:56Posts: 273Location: East Sussex, United Kingdom Likes: 7
 

 Post Topic: Re: Racing lap system / checkpoint system , Hud Text?
PostPosted 05.05.2013, 12:28 
Cool. Got !race from a friend, I don´t know where he got it from.

Never actually tested it, been lying in my chat commands list for years.

DoS


Server Side Modding Support