| QUOTE (SilentPL @ Thursday, Aug 16 2012, 22:49) |
| Check if the car is RWD. |
thx for the tip, i assume you mean the handling field q
good idea normally
| CODE |
{$CLEO .cs} :HandlingDriveType 03A4: name_thread 'DVTYPE' 0A9A: 11@ = openfile "CLEO\drivetype.ini" mode 25207 0A9B: closefile 11@
while true wait 0 if 0256: player $PLAYER_CHAR defined then if 00DF: actor $PLAYER_ACTOR driving then 03C0: 10@ = actor $PLAYER_ACTOR car 0441: 0@ = car 10@ model 0ADB: 4@v = car_model 0@ name// - cleo 4 - 0@ -= 400 0@ *= 0xE0 0@ += 0xC2B9DC 0@ += 0x74 0A8D: 1@ = read_memory 0@ size 4 virtual_protect 0 0A9A: 11@ = openfile "CLEO\drivetype.ini" mode 114 0AF1: write_int 1@ to_ini_file "CLEO\drivetype.INI" section "drivetype" key 4@v 0A9B: closefile 11@ end while 00DF: actor $PLAYER_ACTOR driving wait 0 03F0: enable_text_draw 1 045A: text_draw_1number 50.0 100.0 'NUMBER' 1@ end end end |
but i didn't got usefull results
| CODE |
LANDSTAL 4 D LANDSTK=345140 BRAVURA F P BRAVURA=348230 BUFFALO R P BUFFALO=348242 LINERUN R D LINERUN=345170 PEREN F P PEREN=348230 SENTINEL R P SENTINL=348242 DUMPER R D DUMPER=279634 FIRETRUK R D FIRETRK=345170 TRASH R D TRASHM=279634 STRETCH R P STRETCH=348242 MANANA F P MANANA=217158 INFERNUS 4 P INFERNU=348212 VOODOO R P VOODOO=348242 PONY R D PONY=345170 MULE R D MULE=345170 CHEETAH R P CHEETAH=348242 AMBULAN 4 D AMBULAN=345140 MOONBEAM R D MOONBM=348242 ESPERANT R P ESPERAN=348230 TAXI F P TAXI=348242 WASHING R P WASHING=345140 BOBCAT 4 D BOBCAT=345170 MRWHOOP R D WHOOPEE=282706 BFINJECT R P BFINJC=348242 PREMIER R P PREMIER=345170 ENFORCER R D ENFORCR=348242 SECURICA R D SECURI=348242 BANSHEE R P BANSHEE=279604 BUS R D BUS=348242 RHINO 4 D RHINO=345170 BARRACKS 4 D BARRCKS=282694 HOTKNIFE R P HOTKNIF=345170 PREVION F P PREVION=282706 COACH R D COACH=348230 CABBIE R P CABBIE=83252 STALLION R P STALION=348242 |
LINERUN, DUMPER, FIRETRK, TRASHM should have have the same but aren't
looks more like model flag