SA-MP Forums Archive
[GameMode] Need For Speed World (Unfinished) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Gamemode Scripts (https://sampforum.blast.hk/forumdisplay.php?fid=71)
+--- Thread: [GameMode] Need For Speed World (Unfinished) (/showthread.php?tid=462001)



Need For Speed World (Unfinished) - SDraw - 04.09.2013

Unfinished gamemode as copy of multiplayer game Need For Speed World.

Requirements: Incognito's Streamer, Audio Plugin, SA:MP MySQL Plugin, sscanf, GVar Plugin, MD5, Anti Cheat By Gamer_Z, foreach and some optional libraries avaliable in repository.
URL: github.com
Notes: Assembling will be done by you, not me. I won't help you. You have enough. Also you can suggest some fixes in Pull Request. And remember that this code is TRASH.


Re: Need For Speed World (Unfinished) - Stanford - 04.09.2013

REP+ed, good job and keep up the good work!.


Re: Need For Speed World (Unfinished) - RoDney - 04.09.2013

Awesome + i agree with your signature


Re: Need For Speed World (Unfinished) - Albion - 04.09.2013

How to find fatal error 100: cannot read from file: "nfsw\offset.txt"


Re: Need For Speed World (Unfinished) - Pottus - 04.09.2013

This is really really cluttered right now, the gamemode needs to be broken up into includes the current state is not really production quality however it's really not too far behind where it needs to be I think it could be organized properly in a two or three days.

- Too many systems under the same callbacks needs hooking and includes
- Eliminate all pvars
- Needs more comments
- Eliminate any OnGameModeExit() stuff using an sh starter script is superior (GMX causes client bugs unacceptable)
- #include <nfsw\player_textdraws.txt> is a bad use of includes I think these need to be their own include (Use y_hooks)
- Areas should be organized better
- Wrong value for calculating velocity ---> sspeed = 150*(p[0]*p[0]+p[1]*p[1]/*+p[2]*p[2]*/);

That would be just for starters cheers!


Re: Need For Speed World (Unfinished) - Mckarlis - 04.09.2013

tottaly good job +REP


Re: Need For Speed World (Unfinished) - J0 - 04.09.2013

Nice


Re: Need For Speed World (Unfinished) - Beckett - 04.09.2013

Nice.


Re: Need For Speed World (Unfinished) - SDraw - 05.09.2013

Quote:
Originally Posted by [uL]Pottus
Посмотреть сообщение
- Eliminate all pvars
- #include <nfsw\player_textdraws.txt> is a bad use of includes I think these need to be their own include
- Too many systems under the same callbacks needs hooking and includes
- Areas should be organized better
- Wrong value for calculating velocity ---> sspeed = 150*(p[0]*p[0]+p[1]*p[1]/*+p[2]*p[2]*/);
- There are no PVars. Only GVars for storing info about races and queues.
- Why should I put another library for hooking if I can make compiler to add code from file itself?
- I don't think so...
- Only acceptable for gems' areas.
- About value, we've talked about it in another thread. About Z-direction, it was removed due some fails when player is being hitted by ram.
Quote:
Originally Posted by [uL]Pottus
Посмотреть сообщение
Use y_hooks
It was in gamemode. But I deleted it because I need to see used stack size, but with y_hook it can't be possible.


Re: Need For Speed World (Unfinished) - Pottus - 05.09.2013

Quote:
Originally Posted by SDraw
Посмотреть сообщение
- There are no PVars. Only GVars for storing info about races and queues.
- Why should I put another library for hooking if I can make compiler to add code from file himself?
- I don't think so...
- Only acceptable for gems' areas.
- About value, we've talked about it in another thread. About Z-direction, it was removed due some fails when player is being hitted by ram.
It was in gamemode. But I deleted it because I need to see used stack size, but with y_hook it can't be possible.
If I put the time in, it would look a lot different

From experience I know this is a very messy gamemode in terms of code organization I never said the code was bad remember.