Forums Gallery Downloads LOGIN |REGISTER

Racing lap system / checkpoint system , Hud Text?

Please use this forum for questions on C++, Lua, XML, and any other languages used in Crysis modding.


 

Dark12345
Junior Dev
Junior Dev
 
Posts: 127
Member since: 28.06.2008, 05:46
Location: UK
Likes: 1

Racing lap system / checkpoint system , Hud Text?

Postby Dark12345 » 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
DoS
Developer
Developer
 
Posts: 273
Member since: 04.12.2011, 13:56
Location: East Sussex, United Kingdom
Likes: 7

Re: Racing lap system / checkpoint system , Hud Text?

Postby DoS » 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
Dark12345
Junior Dev
Junior Dev
 
Posts: 127
Member since: 28.06.2008, 05:46
Location: UK
Likes: 1

Re: Racing lap system / checkpoint system , Hud Text?

Postby Dark12345 » 10.06.2012, 18:27

Awesome ! Let me know!
User avatar
DoS
Developer
Developer
 
Posts: 273
Member since: 04.12.2011, 13:56
Location: East Sussex, United Kingdom
Likes: 7

Re: Racing lap system / checkpoint system , Hud Text?

Postby DoS » 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 141 times
Server Side Modding Support
catanativu
Just getting started
Just getting started
 
Posts: 2
Member since: 22.01.2013, 00:53
Likes: 0

Re: Racing lap system / checkpoint system , Hud Text?

Postby catanativu » 28.01.2013, 01:21

for what version AegisX is it ?
User avatar
DoS
Developer
Developer
 
Posts: 273
Member since: 04.12.2011, 13:56
Location: East Sussex, United Kingdom
Likes: 7

Re: Racing lap system / checkpoint system , Hud Text?

Postby DoS » 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
catanativu
Just getting started
Just getting started
 
Posts: 2
Member since: 22.01.2013, 00:53
Likes: 0

Re: Racing lap system / checkpoint system , Hud Text?

Postby catanativu » 29.01.2013, 04:32

thanks
User avatar
DoS
Developer
Developer
 
Posts: 273
Member since: 04.12.2011, 13:56
Location: East Sussex, United Kingdom
Likes: 7

Re: Racing lap system / checkpoint system , Hud Text?

Postby DoS » 29.01.2013, 18:20

No problem.
Server Side Modding Support
User avatar
7OXIC
Junior Dev
Junior Dev
 
Posts: 108
Member since: 24.12.2007, 15:56
Location: UK
Likes: 7

Re: Racing lap system / checkpoint system , Hud Text?

Postby 7OXIC » 03.05.2013, 22:06

DoS wrote: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
DoS
Developer
Developer
 
Posts: 273
Member since: 04.12.2011, 13:56
Location: East Sussex, United Kingdom
Likes: 7

Re: Racing lap system / checkpoint system , Hud Text?

Postby DoS » 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


 
Connect and collaborate with CRYENGINE developers in the official Forums.
Visit the Gallery to share what you have created and be inspired by what others are creating with CRYENGINE.
Community