Quantcast

Jump to content

» «
Photo

[REL|SA] Stinger Drop Mod

29 replies to this topic
demonj0e
  • demonj0e

    Sa Coder In Training

  • Members
  • Joined: 05 Apr 2005

#1

Posted 25 September 2005 - 01:29 PM Edited by demonj0e, 24 October 2005 - 09:23 AM.

Hey all
Converted this from Vc Original by PatrickW
This will let you drop stingers if you are in a police vehicle(can be changed)
after a while the stinger will dissapear so you dont end up with to many

Add this to your create thread section
CODE
004F: create thread ££stinger_sniff_thread


And This before mission 0

CODE
:Stinger_thread                              
03A4: name thread "STING"
0247: request_model #TEMP_STINGER2
038B: load_requested_models
0004: @32 = 0  
029B: @7 = init_object #TEMP_STINGER2 at @0 @1 @2
0177: set object @7 z angle to  @3
01C7: remove_object_from_mission_cleanup_list @7
0007: @4 = @0
000F: @4 -= 2.0
000B: @0 += 2.0
0007: @5 = @1
000F: @5 -= 2.0
000B: @1 += 2.0  
 
:Stinger_loop      
0001: wait  250 ms
0007: @6 = -1
053E: @6 = get_random_car_with_actors -1 in_area @4 @5 @0 @1  
00D6: if 0
8039:   NOT   @6 ==  -1;; integer values
004D: jump_if_false ££Stinger_timer      
04FE: deflate_tire  0 on_car @6
04FE: deflate_tire  1 on_car @6
04FE: deflate_tire  2 on_car @6
04FE: deflate_tire  3 on_car @6

:Stinger_timer
00D6: if 0
0019:   @32 > 10000
004D: jump_if_false ££Stinger_loop    
0249: release_model #TEMP_STINGER2
0108: destroy object @7
004E: end_thread

:stinger_sniff_thread
03A4: name thread "ST_SNIF"

:stinger_sniff_loop
0001: wait  100 ms
00D6: if 0
0256:   player $PLAYER_CHAR defined
004D: jump_if_false ££stinger_sniff_loop  
00D6: if 1
00E1:   key pressed  0  17  
056C:   actor $PLAYER_ACTOR driving_police_vehicle
004D: jump_if_false ££stinger_sniff_loop    
03C0: @10 = actor $PLAYER_ACTOR car
0407: create coordinate @0 @1 @2 from car @10 offset  0.0 -2.5  1.0
0174: @3 = car @10 z_angle
0009: @3 +=  90.0;; floating-point values
02CE: @2 = ground z @0 @1 @2
000B: @2 += 0.1
004F: create thread ££Stinger_thread  @0 @1 @2 @3
0001: wait  500 ms
0002: jump ££stinger_sniff_loop


If you want to have it on all vehicles type you should replace
CODE
056C:   actor $PLAYER_ACTOR driving_police_vehicle


With

CODE
00DF:   actor $PLAYER_ACTOR driving


Or You can change it to

CODE
00DD:   actor $PLAYER_ACTOR driving_vehicle_type #GREENWOO


Of course you can change #GREENWOO to anythign else

Demarest
  • Demarest

    what could be

  • BUSTED!
  • Joined: 12 Jul 2003

#2

Posted 25 September 2005 - 02:05 PM

I'm assuming that Patrick launched a separate thread because spikestrips in VC that were engine generated didn't have bite to them. In SA, this is no longer the case. Though the 2nd thread is a quick way to make sure memory doesn't get stuffed. Just remember that there is a thread limit and in SA, it's far less flexible than in previous GTAs. I don't know how (if at all) this matters as I'm not entirely familiar if/how R* optimized thread count.

Lethal.Ambition
  • Lethal.Ambition

    Rat

  • Members
  • Joined: 10 Jul 2005

#3

Posted 26 September 2005 - 01:54 AM

Is there anyway to do a Rebirth on this? I would love this but I started playing Rebirth and I'm in Las Venturas and it took me forever sad.gif I really want this mod though.

spaceeinstein
  • spaceeinstein

    巧克力

  • Members
  • Joined: 17 Jul 2003

#4

Posted 26 September 2005 - 02:02 AM

Change @16 to @32 and you're done, I think.

Demarest
  • Demarest

    what could be

  • BUSTED!
  • Joined: 12 Jul 2003

#5

Posted 26 September 2005 - 02:12 AM

QUOTE (Lethal.Ambition @ Sep 25 2005, 21:54)
Is there anyway to do a Rebirth on this? I would love this but I started playing Rebirth and I'm in Las Venturas and it took me forever sad.gif I really want this mod though.

I'm at a loss as to where all the confusion is. DARKPACT is the process that allows mods to be injected into code without having to restart. Rebirth is just one of many Code Tools I've developed that are made to work with your existing save. Rebirth in particular replaces the SCM. Your post makes it sound like you had to start over, but you didn't.

To answer the question you meant to ask, yes, this could be Darkpacted into a SCM.

KungFuJebus
  • KungFuJebus

    Punk-ass Bitch

  • Members
  • Joined: 01 Aug 2005

#6

Posted 27 September 2005 - 05:02 AM

woah this would be so cool (and fitting) to use with the tumbler! i wish itd make it itno the next all in one mod

SAZ
  • SAZ

    Square Civilian

  • Members
  • Joined: 25 Jun 2005

#7

Posted 27 September 2005 - 09:15 PM

yea man cud u possibly fit this to all rare cars....phoenix especially, swat tank, tank, racing cars..it wud b cool!

Demarest
  • Demarest

    what could be

  • BUSTED!
  • Joined: 12 Jul 2003

#8

Posted 28 September 2005 - 07:04 AM

dem0n gave instructions on how to make it work on ANY vehicle.

careca
  • careca

    Rat

  • Members
  • Joined: 05 May 2005

#9

Posted 09 October 2005 - 10:58 PM Edited by careca, 13 October 2005 - 01:26 AM.

Why it doesn't deflate the left front tire??

is it possible to make a change (another code) so the spikes generated inflate the tires?

Nobuyoshi2
  • Nobuyoshi2

    Snitch

  • BUSTED!
  • Joined: 27 May 2005

#10

Posted 23 October 2005 - 03:39 PM Edited by Nobuyoshi2, 11 January 2006 - 01:23 PM.

QUOTE (careca @ Oct 9 2005, 22:58)
Why it doesn't deflate the left front tire??

is it possible to make a change (another code) so the spikes generated inflate the tires?

it's not like this mod is anything to get excited over anyway due to the fact that you have to start a new game sigh.gif , I hate main.scm edit's because they always require you to start a new game, so uncool.

careca
  • careca

    Rat

  • Members
  • Joined: 05 May 2005

#11

Posted 24 October 2005 - 04:25 AM

well...i start a new game everytime i play! what about that? i don't do any missions...i just cruise around checking new vehicles that i replace or whatever...now, i noticed why the cars don't deflate the left front tire...and i is very simple to fix...the original code...
CODE

04FE: deflate_tire  1 on_car @6
04FE: deflate_tire  2 on_car @6
04FE: deflate_tire  3 on_car @6
04FE: deflate_tire  4 on_car @6


this deflates the tire 1,2,3 and 4

well but there isn't any 4th tire!!
the code is wrong just there because it tells the game to deflate a non existing tire...
so if u want the stinger's to deflate all tires of a car...u just change the 4 to a 0
like this...
CODE

04FE: deflate_tire  0 on_car @6
04FE: deflate_tire  1 on_car @6
04FE: deflate_tire  2 on_car @6
04FE: deflate_tire  3 on_car @6


just change this in the code and now all tires will deflate.

demonj0e
  • demonj0e

    Sa Coder In Training

  • Members
  • Joined: 05 Apr 2005

#12

Posted 24 October 2005 - 09:11 AM

ah thankyou careca, didnt realy notice it didnt deflate all tires
ill update first post now

careca
  • careca

    Rat

  • Members
  • Joined: 05 May 2005

#13

Posted 29 October 2005 - 12:40 AM

rolleyes.gif nice to know i have said something usefull since i get here...

brantje
  • brantje

    Player Hater

  • Members
  • Joined: 30 Oct 2005

#14

Posted 30 October 2005 - 02:41 PM

Can someone post the main.scm with this mod?

careca
  • careca

    Rat

  • Members
  • Joined: 05 May 2005

#15

Posted 30 October 2005 - 09:57 PM

I can't...if u want to go that way...well what will u do when u see 3 or 4 codes\scripts u like? will u get a single mod in each one of the scm's? anyway... it's not hard to add the code to ur scm!

brantje
  • brantje

    Player Hater

  • Members
  • Joined: 30 Oct 2005

#16

Posted 19 November 2005 - 01:40 PM

ok i've tryed to do.
Compling works.
But if i start a new game, SA crasht.
Why?
I have chanced the
056C: actor $PLAYER_ACTOR driving_police_vehicle
to
00DF: actor $PLAYER_ACTOR driving

demonj0e
  • demonj0e

    Sa Coder In Training

  • Members
  • Joined: 05 Apr 2005

#17

Posted 19 November 2005 - 08:05 PM

where did u put the code?

Mr. Someguy
  • Mr. Someguy

    Gold Member

  • Members
  • Joined: 10 Dec 2004

#18

Posted 14 December 2005 - 01:10 AM

Where do I place the code?

Demarest
  • Demarest

    what could be

  • BUSTED!
  • Joined: 12 Jul 2003

#19

Posted 14 December 2005 - 06:32 AM

All code mods go before Mission 0 and always have.

Mr. Someguy
  • Mr. Someguy

    Gold Member

  • Members
  • Joined: 10 Dec 2004

#20

Posted 14 December 2005 - 08:22 PM Edited by Mr. Someguy, 14 December 2005 - 08:37 PM.

What file?

btw; is it possible to drop:
trash from garbagetruck
Random boxes/barrels from Andromada
Cardboard boxes from delivery trucks
military/ammo crates from Barracks
etc. from etc.

Knife
  • Knife

    Tits.

  • Zaibatsu
  • Joined: 11 Jul 2004
  • None

#21

Posted 14 December 2005 - 08:24 PM

main.scm, opend with the mission builder.

Mr. Someguy
  • Mr. Someguy

    Gold Member

  • Members
  • Joined: 10 Dec 2004

#22

Posted 14 December 2005 - 08:41 PM

I get an error

Demarest
  • Demarest

    what could be

  • BUSTED!
  • Joined: 12 Jul 2003

#23

Posted 15 December 2005 - 07:41 PM

This is not editing discussion. Pop over there and use the search feature before hijacking a release thread.

demonj0e
  • demonj0e

    Sa Coder In Training

  • Members
  • Joined: 05 Apr 2005

#24

Posted 15 December 2005 - 09:46 PM

QUOTE (Mr. Someguy @ Dec 14 2005, 20:22)
What file?

btw; is it possible to drop:
trash from garbagetruck
Random boxes/barrels from Andromada
Cardboard boxes from delivery trucks
military/ammo crates from Barracks
etc. from etc.

very possible just change the models and change what car u have to be driving in like ive shown u

Mr. Someguy
  • Mr. Someguy

    Gold Member

  • Members
  • Joined: 10 Dec 2004

#25

Posted 15 December 2005 - 10:36 PM

Tell me where to put the codes plz

-Dark-
  • -Dark-

    Player Hater

  • Members
  • Joined: 25 Jul 2006

#26

Posted 09 August 2006 - 01:44 AM Edited by -Dark-, 09 August 2006 - 02:03 AM.

I added all that code to the Main.scm ....and I can drop the stingers.....but they don't pop tires, (they do nothing but sit there) sad.gif

anyone know how to fix that confused.gif

BulliteShot
  • BulliteShot

    Player Hater

  • Members
  • Joined: 24 Jul 2006

#27

Posted 14 August 2006 - 03:59 PM

Same here, they don't pop tires - I'm going tot ry the all in one mod which has this anuj_cop.gif

-Dark-
  • -Dark-

    Player Hater

  • Members
  • Joined: 25 Jul 2006

#28

Posted 22 August 2006 - 08:10 AM

QUOTE (-Dark- @ Aug 9 2006, 01:44)
I added all that code to the Main.scm ....and I can drop the stingers.....but they don't pop tires, (they do nothing but sit there) sad.gif

anyone know how to fix that confused.gif

Nevermind ..... I got it working.... I just changed this bit of code:

CODE
053E: @6 = get_random_car_with_actors -1 in_area @4 @5 @0 @1


to this:

CODE
053E: @6 = get_random_car_in_area @4 @5 @0 @1 with_actor_type -1


and now it works biggrin.gif

gcapel
  • gcapel

    Player Hater

  • Members
  • Joined: 08 May 2012

#29

Posted 05 August 2013 - 07:30 PM

I don't understand. all I want is throw spike strips from a broadway. can someone tell me how to make the script with ENOUGH parameters! I'm trying to fix it by myself but nothing works sad.gif What do they mean with 'before threat section' and 'before mission 0'
can someone paste sh*t to ONE code please? sad.gif I'm a real noob iknow

ZAZ
  • ZAZ

    Kernlochbohrer

  • Members
  • Joined: 10 Jan 2005
  • European-Union

#30

Posted 05 August 2013 - 07:59 PM

QUOTE (gcapel @ Monday, Aug 5 2013, 20:30)
I don't understand. all I want is throw spike strips from a broadway. can someone tell me how to make the script with ENOUGH parameters! I'm trying to fix it by myself but nothing works sad.gif What do they mean with 'before threat section' and 'before mission 0'
can someone paste sh*t to ONE code please? sad.gif I'm a real noob iknow

use Sannybuilder: http://sannybuilder.com/

If you wanna implement the script into main.scm, then follow the instruction of demonj0e, but convert the script first into sannybuilder syntax,
use sannybuilder function in menue: Tools > Code converter > MB->SB

If you wanna have it as cleoscript, then go here: http://www.gtaforums...st&p=1059007109




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users