Quantcast

Jump to content

» «
Photo

[CLEO]Realistic Traffic! (no more floating

139 replies to this topic
HippieCommunist
  • HippieCommunist

    PWR2DPPL

  • Members
  • Joined: 25 Jan 2003

#1

Posted 14 June 2008 - 04:17 PM Edited by HippieCommunist, 19 June 2008 - 08:21 PM.

Realistic Traffic MOD for sa (by HippieCommunist) +ADDED TAXI/BUS RIDE!

makes traffic Cleo controled to make it real.
all traffic cars are closed at first (im using ZAZ's car salon for buying cars)
you need to kill the driver to get the car.
the games "remembers" alot more about the traffic, so dont be surprised if you'll
be chased trough all SA by some dude you accidently hit a while ago, yet i seem
to really enjoy this ^^

a little extra:
press "Fire" to while driving to enter free aim mod (the cheat that makes drivebys mafia style)
press any of the "look left/right/back" in car to return to usual view.

added the ride a taxi\bus by pressing TAB (action) near taxi bus coach or cabbie and choosing any location on the map marker (costs 100$ a ride).

ive tested it and its really stable.... i managed to do a few vigilante missions riding and directing the taxi driver and free aiming at them 'pedtype 23's ^^ (when YOU dont drive the camera dos'nt go forward al the time!)

*its hard to shoot back wards as the camera keeps straightening forward, but i kept
this effect in order to harden on the player more.

- i use another mod ive made that makes the cars very strong against guns so the chases
would be more thrilling.

REAL TRAFFIC v1.1

FREEAIM

screenies!

user posted image

user posted image

user posted image

user posted image

user posted image


enjoy! took me two straight days.

meyb im not that good at that... yawn.gif

edit - ive rewrote tha whole thing like 845 times so it would look natural, i keep on updating here though.

Grove Street Boy
  • Grove Street Boy

    Maggot for life!

  • Members
  • Joined: 06 Aug 2005

#2

Posted 14 June 2008 - 05:02 PM

haha! nice mod man! I love cleo scripts! This really makes car jacking and traffic more realistic, i mean like hell which idiot in real life wud not lock his car when driving? even i do when i drive tounge.gif LOL. and yeah, getting chased longer is more fun tounge.gif in normal SA its so easy to lose guys that chase you. good job man, hope to see more!

HippieCommunist
  • HippieCommunist

    PWR2DPPL

  • Members
  • Joined: 25 Jan 2003

#3

Posted 14 June 2008 - 05:17 PM Edited by HippieCommunist, 16 June 2008 - 06:54 PM.

much appriciated wink.gif

here is the (hopfuly) final code:

real traffic -
CODE

{$VERSION 3.1.0027}
{$CLEO .cs}

//-------------MAIN---------------
03A4: name_thread 'REALCAR'

:REALCAR_11
0001: wait 0 ms
04C4: store_coords_to 4@ 5@ 30@ from_actor $PLAYER_ACTOR with_offset -50.0 -50.0 0.0
04C4: store_coords_to 6@ 7@ 31@ from_actor $PLAYER_ACTOR with_offset 50.0 50.0 0.0
053E: 1@ = get_random_car_with_model -1 in_rectangle_cornerA 4@ 5@ cornerB 6@ 7@
00D6: if
056E:   car 1@ defined
004D: jump_if_false @REALCAR_11
046C: 0@ = car 1@ driver
00D6: if
056D:   actor 0@ defined
004D: jump_if_false @REALCAR_11
089F: get_actor 0@ pedtype_to 15@
01EA: 29@ = car 1@ max_passengers
00D6: if and
8039:   not  15@ == 6
847A:   not actor 0@ driving_bike
004D: jump_if_false @REALCAR_11
09B3: get_car 1@ door_status 8@
00D6: if
8019:   not  8@ > 2
004D: jump_if_false @REALCAR_11
00D6: if
0019:   29@ > 2
004D: jump_if_false @REALCAR_233
00D6: if
0431:   car 1@ passenger_seat_free 1
004D: jump_if_false @REALCAR_699

:REALCAR_233
00D6: if
0431:   car 1@ passenger_seat_free 0
004D: jump_if_false @REALCAR_451
03F3: get_car 1@ primary_color_to 25@ secondary_color_to 26@
0441: 20@ = car 1@ model
0174: 3@ = car 1@ Z_angle
02E3: 14@ = car 1@ speed
0665: get_actor 0@ model_to 13@
0407: store_coords_to 21@ 22@ 23@ from_car 1@ with_offset 0.0 0.0 0.0
01C2: remove_references_to_actor 0@ // Like turning an actor into a random pedestrian
00A6: destroy_car 1@
00A5: 1@ = create_car 20@ at 21@ 22@ 23@
0175: set_car 1@ Z_angle_to 3@
0229: set_car 1@ primary_color_to 25@ secondary_color_to 26@
0129: 0@ = create_actor_pedtype 15@ model 13@ in_car 1@ driverseat
04BA: set_car 1@ speed_to 14@
00A9: set_car 1@ to_normal_driver
00AF: set_car 1@ driver_behaviour_to 1
00AE: set_car 1@ traffic_behaviour_to 1
020A: set_car 1@ door_status_to 3
04E0: car 1@ abandon_path_radius 0
0249: release_model 20@
0249: release_model 13@
01C2: remove_references_to_actor 0@ // Like turning an actor into a random pedestrian
01C3: remove_references_to_car 1@ // Like turning a car into any random car
0002: jump @REALCAR_11

:REALCAR_451
0001: wait 0 ms
03F3: get_car 1@ primary_color_to 25@ secondary_color_to 26@
0441: 20@ = car 1@ model
0174: 3@ = car 1@ Z_angle
02E3: 14@ = car 1@ speed
0432: 2@ = get_actor_handle_from_car 1@ passenger_seat 0
0665: get_actor 0@ model_to 13@
0665: get_actor 2@ model_to 19@
0407: store_coords_to 21@ 22@ 23@ from_car 1@ with_offset 0.0 0.0 0.0
01C2: remove_references_to_actor 0@ // Like turning an actor into a random pedestrian
01C2: remove_references_to_actor 2@ // Like turning an actor into a random pedestrian
00A6: destroy_car 1@
00A5: 1@ = create_car 20@ at 21@ 22@ 23@
0175: set_car 1@ Z_angle_to 3@
0229: set_car 1@ primary_color_to 25@ secondary_color_to 26@
01C8: 2@ = create_actor_pedtype 15@ model 19@ in_car 1@ passenger_seat 0
0129: 0@ = create_actor_pedtype 15@ model 13@ in_car 1@ driverseat
04BA: set_car 1@ speed_to 14@
00A9: set_car 1@ to_normal_driver
00AF: set_car 1@ driver_behaviour_to 1
00AE: set_car 1@ traffic_behaviour_to 1
020A: set_car 1@ door_status_to 3
04E0: car 1@ abandon_path_radius 0
0249: release_model 20@
0249: release_model 13@
01C2: remove_references_to_actor 0@ // Like turning an actor into a random pedestrian
01C2: remove_references_to_actor 2@ // Like turning an actor into a random pedestrian
01C3: remove_references_to_car 1@ // Like turning a car into any random car
0002: jump @REALCAR_11

:REALCAR_699
0001: wait 0 ms
03F3: get_car 1@ primary_color_to 25@ secondary_color_to 26@
0441: 20@ = car 1@ model
0174: 3@ = car 1@ Z_angle
02E3: 14@ = car 1@ speed
0432: 2@ = get_actor_handle_from_car 1@ passenger_seat 0
0432: 12@ = get_actor_handle_from_car 1@ passenger_seat 1
0665: get_actor 12@ model_to 10@
0665: get_actor 0@ model_to 13@
0665: get_actor 2@ model_to 19@
0407: store_coords_to 21@ 22@ 23@ from_car 1@ with_offset 0.0 0.0 0.0
01C2: remove_references_to_actor 12@ // Like turning an actor into a random pedestrian
01C2: remove_references_to_actor 0@ // Like turning an actor into a random pedestrian
01C2: remove_references_to_actor 2@ // Like turning an actor into a random pedestrian
00A6: destroy_car 1@
00A5: 1@ = create_car 20@ at 21@ 22@ 23@
0175: set_car 1@ Z_angle_to 3@
0229: set_car 1@ primary_color_to 25@ secondary_color_to 26@
01C8: 12@ = create_actor_pedtype 15@ model 10@ in_car 1@ passenger_seat 1
01C8: 2@ = create_actor_pedtype 15@ model 19@ in_car 1@ passenger_seat 0
0129: 0@ = create_actor_pedtype 15@ model 13@ in_car 1@ driverseat
04BA: set_car 1@ speed_to 14@
00A9: set_car 1@ to_normal_driver
00AF: set_car 1@ driver_behaviour_to 1
00AE: set_car 1@ traffic_behaviour_to 1
020A: set_car 1@ door_status_to 3
04E0: car 1@ abandon_path_radius 0
0249: release_model 20@
0249: release_model 13@
01C2: remove_references_to_actor 0@ // Like turning an actor into a random pedestrian
01C2: remove_references_to_actor 2@ // Like turning an actor into a random pedestrian
01C3: remove_references_to_car 1@ // Like turning a car into any random car
0002: jump @REALCAR_11
004E: end_thread

kevindevil
  • kevindevil

    Thug Life

  • Members
  • Joined: 18 Feb 2008

#4

Posted 14 June 2008 - 06:09 PM

This is really good icon14.gif
Have a cookie cookie.gif

HippieCommunist
  • HippieCommunist

    PWR2DPPL

  • Members
  • Joined: 25 Jan 2003

#5

Posted 14 June 2008 - 06:30 PM

are you stalking me?? inlove.gif

glad u like it.

james227uk
  • james227uk

    One Spartan Army

  • Andolini Mafia Family
  • Joined: 05 Feb 2008

#6

Posted 14 June 2008 - 07:06 PM

WOW! I really like your cleo mods, even the news one! They're all great! Well done icon14.gif

cookie.gif cookie.gif cookie.gif cookie.gif cookie.gif cookie.gif cookie.gif cookie.gif cookie.gif

HippieCommunist
  • HippieCommunist

    PWR2DPPL

  • Members
  • Joined: 25 Jan 2003

#7

Posted 14 June 2008 - 09:27 PM

QUOTE (james227uk @ Jun 14 2008, 19:06)
WOW! I really like your cleo mods, even the news one! They're all great! Well done icon14.gif

cookie.gif cookie.gif cookie.gif cookie.gif cookie.gif cookie.gif cookie.gif cookie.gif cookie.gif

why "EVEN"?
whats wrong with the news one? notify.gif

biggrin.gif

yeah it was buggy at first... whatsthat.gif

this baby im truly proud of!
sigh.gif

i get surprisingly highmotivated when the next GTA is everywhere but on PC confused.gif




thanx for the kind words ppl.

GTAFunner69
  • GTAFunner69

    Player Hater

  • Members
  • Joined: 12 Jun 2008

#8

Posted 14 June 2008 - 10:58 PM

More realistic including parked cars locked with alarm,to steal crash the windows or door with beisbol bat,golf stick,billiards stick...etc,steal to GTA 4 style cool.gif

Byez and thanks for the mod!

onetidd
  • onetidd

    972 Represent'

  • Members
  • Joined: 01 Nov 2006

#9

Posted 15 June 2008 - 04:05 AM

Hey man good works, it's a good script, but on my game the freeaim mod crash when i do the mission "NINES AND AK'S"!! Please tell me what's wrong!!

HippieCommunist
  • HippieCommunist

    PWR2DPPL

  • Members
  • Joined: 25 Jan 2003

#10

Posted 15 June 2008 - 05:04 AM

i think i know whats wrong

try this...

CODE

{$VERSION 3.1.0027}
{$CLEO .cs}

//-------------MAIN---------------
03A4: name_thread 'FREEAIM'

:FREEAIM_11
0001: wait 0 ms
00D6: if
0256:   player $PLAYER_CHAR defined
004D: jump_if_false @FREEAIM_11
01C3: remove_references_to_car 2@
00D6: if
00DF:   actor $PLAYER_ACTOR driving
004D: jump_if_false @FREEAIM_11
03C0: 1@ = actor $PLAYER_ACTOR car
01C3: remove_references_to_car 1@
00D6: if
82D8:   not actor $PLAYER_ACTOR current_weapon == 0
004D: jump_if_false @FREEAIM_11
020A: set_car 1@ door_status_to 0  // THIS UNLOCKS THE DRIVING CAR DOOR
00D6: if
00E1:   player 0 pressed_key 17
004D: jump_if_false @FREEAIM_212
0713: actor $PLAYER_ACTOR driveby_actor -1 car -1 point 0.0 0.0 0.0 radius 0.0 -9000 0 firing_rate 100
0001: wait 400 ms
0002: jump @FREEAIM_11

:FREEAIM_212
0001: wait 0 ms
00D6: if or
00E1:   player 0 pressed_key 5
00E1:   player 0 pressed_key 7
004D: jump_if_false @FREEAIM_11
0687: clear_actor $PLAYER_ACTOR task
015A: restore_camera
0002: jump @FREEAIM_11
004E: end_thread


tomorow ill post my newest versions of those mods that gonna be pretty much final...

onetidd
  • onetidd

    972 Represent'

  • Members
  • Joined: 01 Nov 2006

#11

Posted 15 June 2008 - 01:36 PM Edited by onetidd, 15 June 2008 - 01:45 PM.

Thanx man, i will try now!!!

EDIT: Don't know what's wrong for me, it's not the first cleo script who is crashing my game, the pimpcarmod BETA2 do the same thing!!


HippieCommunist
  • HippieCommunist

    PWR2DPPL

  • Members
  • Joined: 25 Jan 2003

#12

Posted 15 June 2008 - 03:07 PM

try reinstalling or checking other C-ripts you have...

i have 3 diffrent SA folders... only on my E drive ^^

pgtipsp
  • pgtipsp

    Trick

  • Members
  • Joined: 19 May 2007

#13

Posted 15 June 2008 - 05:02 PM

great work! so far ive only tried the free aim mod, which i love - two things though... is it possible for you to make all the guns appear when firing out of windows instead of just smgs, and also is it ossible to enable the rocketlauncher to be fired? that would be amazing

kutgw

FunGt
  • FunGt

    GTA-Modding.com

  • Members
  • Joined: 10 Jun 2005
  • Italy

#14

Posted 15 June 2008 - 05:17 PM

Nice mod, I tried the free aim but I think that it should move more "free" coz it tends to come back in normal camera (from back).

bumster
  • bumster

    Ham on!

  • BUSTED!
  • Joined: 18 Jul 2007

#15

Posted 15 June 2008 - 05:22 PM

Does this mean that the police will actually chase you like in Driver games?

eduardonba
  • eduardonba

    thug life

  • Members
  • Joined: 17 May 2008

#16

Posted 15 June 2008 - 08:09 PM

is possible change keys left mouse button to crtl?

evilrex
  • evilrex

    Foot Soldier

  • Members
  • Joined: 27 May 2006

#17

Posted 15 June 2008 - 08:37 PM

All I'm seeing is constant car crashes, locked cars, and people randomly disappearing out there cars...
I don't really see much realism...
I was hoping this would lower down the traffics cruising speed. (especially the insane high way speeds)

HippieCommunist
  • HippieCommunist

    PWR2DPPL

  • Members
  • Joined: 25 Jan 2003

#18

Posted 15 June 2008 - 09:40 PM

QUOTE (evilrex @ Jun 15 2008, 20:37)
All I'm seeing is constant car crashes, locked cars, and people randomly disappearing out there cars...
I don't really see much realism...
I was hoping this would lower down the traffics cruising speed. (especially the insane high way speeds)

yeah sry about that redownload to get the latest version...

evilrex
  • evilrex

    Foot Soldier

  • Members
  • Joined: 27 May 2006

#19

Posted 15 June 2008 - 11:05 PM

QUOTE (HippieCommunist @ Jun 15 2008, 21:40)
QUOTE (evilrex @ Jun 15 2008, 20:37)
All I'm seeing is constant car crashes, locked cars, and people randomly disappearing out there cars...
I don't really see much realism...
I was hoping this would lower down the traffics cruising speed. (especially the insane high way speeds)

yeah sry about that redownload to get the latest version...

Thats more like it! cookie.gif cookie.gif cookie.gif

HippieCommunist
  • HippieCommunist

    PWR2DPPL

  • Members
  • Joined: 25 Jan 2003

#20

Posted 15 June 2008 - 11:22 PM Edited by HippieCommunist, 15 June 2008 - 11:26 PM.

QUOTE (evilrex @ Jun 15 2008, 23:05)
QUOTE (HippieCommunist @ Jun 15 2008, 21:40)
QUOTE (evilrex @ Jun 15 2008, 20:37)
All I'm seeing is constant car crashes, locked cars, and people randomly disappearing out there cars...
I don't really see much realism...
I was hoping this would lower down the traffics cruising speed. (especially the insane high way speeds)

yeah sry about that redownload to get the latest version...

Thats more like it! cookie.gif cookie.gif cookie.gif

yet its not completed yet tounge.gif

ill finish it by the end of the week... damn exams! angry.gif

theres a little problem fighting against the game's engine... i need more access but im but a novice coder turn.gif

if any of the hardcore coders here would throw a helping hand im sure it can be done 100%! icon14.gif

cuvip
  • cuvip

    Jefra Bland, miss teen kentuckey US 2009

  • Members
  • Joined: 23 Jan 2008

#21

Posted 16 June 2008 - 12:47 AM

hippie, have you make a freeaim mod when i shoot backward, camera don't move to forward(my english.......................... suicidal.gif )

HippieCommunist
  • HippieCommunist

    PWR2DPPL

  • Members
  • Joined: 25 Jan 2003

#22

Posted 16 June 2008 - 03:14 AM

hah np! biggrin.gif

ill try in a few days mate... when I AM free ^^

cuvip
  • cuvip

    Jefra Bland, miss teen kentuckey US 2009

  • Members
  • Joined: 23 Jan 2008

#23

Posted 16 June 2008 - 07:54 AM

hey hippie, this line:
CODE
0687:clear_actor $PLAYER_ACTOR task
Camera.Restore

to make when we shoot backward camera restore to forward? if that it, tell me how to change when we shoot backward camera don't restore to normal camera

HippieCommunist
  • HippieCommunist

    PWR2DPPL

  • Members
  • Joined: 25 Jan 2003

#24

Posted 16 June 2008 - 08:34 AM Edited by HippieCommunist, 16 June 2008 - 01:11 PM.

QUOTE (cuvip @ Jun 16 2008, 07:54)
hey hippie, this line:
CODE
0687:clear_actor $PLAYER_ACTOR task
Camera.Restore

to make when we shoot backward camera restore to forward? if that it, tell me how to change when we shoot backward camera don't restore to normal camera

nah man its not that...
edit* oh i get what ure saying... just change the keypress number from 7/5 to any key u want... i dont think it will work tough...

i need to sit on it a while, the command

0A25: set_camera_on_players_X_angle 1.0 Z_angle -2.0

can be ajusted from the back of the player's car angle

the problem is with the controls... notice that if u use the numkeys to look around, the camera stay in place! dontgetit.gif
something in the mouse config setting causes the game to point camera forward sly.gif

Doomed_Space_Marine
  • Doomed_Space_Marine

    Thug

  • Members
  • Joined: 21 Jul 2007

#25

Posted 16 June 2008 - 01:16 PM

Camera turns to the front because of the game. MTA developers made the aiming normal in MTA. It should be possible to do this with memory address. And if you have many bullets, then you can just press a numpad key to move the camera a little, then keep mouse button pressed all the time, you will keep shooting and camera won't turn to the front.

james227uk
  • james227uk

    One Spartan Army

  • Andolini Mafia Family
  • Joined: 05 Feb 2008

#26

Posted 16 June 2008 - 01:37 PM

Hardly anyone in this forum wants to talk about MTA.

FullMetal
  • FullMetal

    Non-Retard

  • Feroci Racing
  • Joined: 23 Nov 2004
  • None

#27

Posted 16 June 2008 - 01:42 PM

QUOTE (james227uk @ Jun 16 2008, 13:37)
Hardly anyone in this forum wants to talk about MTA.

True; GTAF HAET MTA, THEY LUV SAMP/VCMP
They just have a thing going on with the SAMP team (SAMP/VCMP dev's are member here so ...)

HippieCommunist
  • HippieCommunist

    PWR2DPPL

  • Members
  • Joined: 25 Jan 2003

#28

Posted 16 June 2008 - 06:52 PM

theres a multiplayer forums for that that all bored.gif

my traffic mod is complete now, it checks the right amount of passengers and everything so make sure to redownload

Doomed_Space_Marine
  • Doomed_Space_Marine

    Thug

  • Members
  • Joined: 21 Jul 2007

#29

Posted 16 June 2008 - 07:57 PM

QUOTE (HippieCommunist @ Jun 16 2008, 20:52)
theres a multiplayer forums for that that all bored.gif

I don't think anyone wants to talk about modding there smile.gif

timeline
  • timeline

    Player Hater

  • Members
  • Joined: 13 May 2008

#30

Posted 16 June 2008 - 08:06 PM

h1 nice mod but can you make AIM mod to start with another key becouse when i start nitro CJ starting to shoot wow.gif sad.gif




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users