IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the Grand Theft Auto V Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
Forum Rules Attention:

The Mod Showroom is only for posting previews/downloads of completed or near finished mods.
All help topics should be posted in the Editing Discussion forums. Help topics and mod requests posted here will be locked or binned. Thank you.
GTAGarage.com : Free mod hosting, attach your files and screenshots to your topics
GTAModding.com : A wiki for everything related to GTA modding, including documentation and tutorials

  Reply to this topicStart new topicStart Poll

 peds uses cellphones

 
nabnabnabn  
Posted: Friday, Jul 20 2012, 03:54
Quote Post


Xbox modder
Group Icon
Group: Members
Joined: Aug 18, 2008

jolly-roger.gif

XXXXX



just a script that I made long time ago so I thought about sharing tounge.gif

basically what this script do is pick a random ped near you and make them use cellphone
and there is a random timer wich means they could use cellphone for long or shortly.
and as I noticed, it doesn't work with gangs or dealers but it does with others

let me know if any of you find glitches or problems about it.

here is the script:
CODE

{$CLEO .cs}
thread 'PDPHN'

:PDPHN_11
wait 0
if
  Player.Defined($PLAYER_CHAR)
jf @PDPHN_11
0209: 13@ = random_int_in_ranges 1000 60000
wait 13@
if
  Player.Defined($PLAYER_CHAR)
jf @PDPHN_11
if and
 $ACTIVE_INTERIOR == 0
 $ONMISSION == 0
jf @PDPHN_11
0209: 1@ = random_int_in_ranges 0 4
if
 1@ == 2
jf @PDPHN_11

:PDPHN_117
wait 10
04C4: store_coords_to 7@ 8@ 9@ from_actor $PLAYER_ACTOR with_offset 0.0 0.0 0.0
0A3E: unknown_get_actor_in_sphere 7@ 8@ 9@ radius 20.0 20.0 20.0 handle_as 11@
wait 10
if
  Actor.Defined(11@)
jf @PDPHN_11
if and
  not Actor.Dead(11@)
044B:   actor 11@ on_foot
  not Actor.Driving(11@)
8818:   not actor 11@ in_air
84AD:   not actor 11@ in_water
82E0:   not actor 11@ firing_weapon
jf @PDPHN_117
Model.Load(#CELLPHONE)

:PDPHN_245
wait 0
if
  Model.Available(#CELLPHONE)
jf @PDPHN_245
0729: AS_actor 11@ hold_cellphone 1
0209: 12@ = random_int_in_ranges 2000 40000
33@ = 0

:PDPHN_290
wait 0
if
  Actor.Defined(11@)
jf @PDPHN_393
if
00F2:   actor 11@ near_actor $PLAYER_ACTOR radius 120.0 120.0 0
jf @PDPHN_393
if
001D:   33@ > 12@ // (int)
jf @PDPHN_290
0729: AS_actor 11@ hold_cellphone 0
wait 2100
if
  Actor.Defined(11@)
jf @PDPHN_393
05DE: AS_actor 11@ walk_around_ped_path

:PDPHN_393
Model.Destroy(#CELLPHONE)
wait 12@
jump @PDPHN_11


the reason that I didn't add the actor.removereferences is because there is no need to do it in this opcode, I tried it on main.scm and it seems that it would forget the actor if you move far away from them instead of keeping them in memory. but I'm not sure about the cleo version so test it this way and see by yourselves tounge.gif

mediafire: peds with cellphone

This post has been edited by nabnabnabn on Friday, Jul 20 2012, 13:56

O This mod is hosted at GTAGarage.com

Downloads:
Download pedphones - 0.006MB, uploaded on Jul 20 2012, downloaded 547 times

Click here to view the mod at GTAGarage

Users WebsitePMMSNYahoo
  Top
 

 
Death2Drugs  
Posted: Friday, Jul 20 2012, 05:15
Quote Post


Wanna milky?
Group Icon
Group: Members
Joined: Feb 20, 2011

mx.gif

XXXXX



Please upload it on MediaFire. GTAGarage isn't taking mods for months.
Users WebsitePM
  Top
 

 
nabnabnabn  
Posted: Friday, Jul 20 2012, 13:57
Quote Post


Xbox modder
Group Icon
Group: Members
Joined: Aug 18, 2008

jolly-roger.gif

XXXXX



QUOTE (Death2Drugs @ Friday, Jul 20 2012, 05:15)
Please upload it on MediaFire. GTAGarage isn't taking mods for months.

uploaded, check first post. smile.gif
Users WebsitePMMSNYahoo
  Top
 

 
DSMTuner  
Posted: Thursday, Jul 26 2012, 01:48
Quote Post


Decorated As F*ck
Group Icon
Group: Members
Joined: Nov 12, 2010

bz.gif

XXXXX



Great mod, it adds a nice little touch of reality.
PM
  Top
 

 
Michael-Knight1  
Posted: Friday, Jul 27 2012, 01:44
Quote Post


Never Give UP
Group Icon
Group: Members
Joined: Jul 8, 2012

gr.gif

XXXXX



Great Mod .
Also This Be Awesom : http://www.mediafire.com/?nnnzmx2nmuk
Video : http://www.youtube.com/watch?v=5XWoHNCN4vo
by Skript47
Users WebsitePM
  Top
 

 
nabnabnabn  
Posted: Monday, Jul 30 2012, 19:59
Quote Post


Xbox modder
Group Icon
Group: Members
Joined: Aug 18, 2008

jolly-roger.gif

XXXXX



QUOTE (Michael-Knight1 @ Friday, Jul 27 2012, 01:44)
Great Mod .
Also This Be Awesom : http://www.mediafire.com/?nnnzmx2nmuk
Video : http://www.youtube.com/watch?v=5XWoHNCN4vo
by Skript47

Nice mod tounge.gif , after checking the script it seems like it creates people with bags and cellphones. the problem is that it would still create those peds even if you have empty streets or using thise:
CODE

03DE: set_pedestrians_density_multiplier_to 0.0


Imagine having a mission where there should be No peds around then one of those spawn and mess up that mission or even crash it. or you want to have empty streets and these keep spawning.
example: Zombie mod where everyone is infected, you walk around and see people talking on cellphones and having shopping bags like nothing is going on? notify.gif

except if you want to add checks so you stop them from working during one of those missions or mods smile.gif
Users WebsitePMMSNYahoo
  Top
 

 

0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)

0 Members:

Topic Options Reply to this topicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG