Coding

 Reply to this postStart new topic

How gets suicide photographer external gets started?

ATP
post Apr 23 2011, 07:31 PM
Post #1


GTA United Lead Developer

Posts: 52
From: Germany
Joined: 23-April 11



Hey,
in SA main we can find the "PHOTO" external script, als known as suicide photographer script. (Video)
My question is, how this script gets started? I looked through the whole main, but there is no starter or something for this script. This is very mysterious to me...


--------------------
Go to the top of the page
 
+Quote Post
Deji
post Apr 24 2011, 11:14 AM
Post #2


Coding like a Rockstar!

Group Icon

Posts: 1,468
From: ???
Joined: 28-May 09



... there is no script for the suicide photographer. It is simply a phenomenon.

The PHOTO script controls the system where you can ask a gang member to take your photo.


--------------------
Go to the top of the page
 
+Quote Post
Spider-Vice
post Apr 24 2011, 02:11 PM
Post #3


In motus...

Group Icon

Posts: 361
From: Portugal
Joined: 28-May 09



It's a phenomenon but was it purposely coded or it's actually a glitch?
Go to the top of the page
 
+Quote Post
Deji
post Apr 24 2011, 08:34 PM
Post #4


Coding like a Rockstar!

Group Icon

Posts: 1,468
From: ???
Joined: 28-May 09



Simply a ped taking pictures of a good view (there are a few other points where peds take photos of stuff) and then just aimlessly walking forward.

Rockstar were too lazy to assume someone would actually watch them and wait for them to stop taking photos to bother ending the task properly. There is nothing in the main.scm to control this behaviour either. It's a hardcoded thing, just like when peds hold hands.


--------------------
Go to the top of the page
 
+Quote Post
ATP
post Apr 24 2011, 11:43 PM
Post #5


GTA United Lead Developer

Posts: 52
From: Germany
Joined: 23-April 11



QUOTE (Deji @ Apr 24 2011, 01:14 PM) *
... there is no script for the suicide photographer. It is simply a phenomenon.

The PHOTO script controls the system where you can ask a gang member to take your photo.
The script you are talking about is the CAMERA Script. Modding wiki says also that the "suicide photographer " is a script.
http://www.gtamodding.com/index.php?title=Script.img


--------------------
Go to the top of the page
 
+Quote Post
Adler
post Apr 25 2011, 03:44 AM
Post #6


Devil's Advocate

Group Icon

Posts: 413
From: CA US
Joined: 26-July 09



It could be that all the external scripts in script.img are loaded on startup. It doesn't look like there's anything that starts the PHOTO script or other externals in the main.scm.

I've tested a stripped SCM at the location of the suicidal photographer and some other peds spawn and just walk into the water with no photo-taking involved or even having a camera. This might just be the game streaming peds at the path though.


--------------------
Go to the top of the page
 
+Quote Post
Deji
post Apr 25 2011, 02:03 PM
Post #7


Coding like a Rockstar!

Group Icon

Posts: 1,468
From: ???
Joined: 28-May 09



Alright.. I stand corrected. PHOTO does control peds taking pictures.

The launch of this script IS hardcoded, however. Many scripts (like some interior scripts) are launched by the EXE internally. I think a few ambient cop scripts are launched this way.


--------------------
Go to the top of the page
 
+Quote Post
ATP
post Apr 28 2011, 01:49 AM
Post #8


GTA United Lead Developer

Posts: 52
From: Germany
Joined: 23-April 11



QUOTE (Deji @ Apr 25 2011, 04:03 PM) *
Alright.. I stand corrected. PHOTO does control peds taking pictures.

The launch of this script IS hardcoded, however. Many scripts (like some interior scripts) are launched by the EXE internally. I think a few ambient cop scripts are launched this way.
You have any idea where in the exe this happens? I took a look at the memory, but I found nothing usable. I want to move the start position, but without changing anything in the script.


--------------------
Go to the top of the page
 
+Quote Post
Reply to this postStart new topic

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