Quantcast

Jump to content

» «
Photo

Unlimited Parachutes (San Andreas)

6 replies to this topic
Graesholt
  • Graesholt

    Player Hater

  • Members
  • Joined: 26 Jul 2012

#1

Posted 28 July 2012 - 02:27 PM

So I have googled for a little while and searched a few sites, including this one, and I found nothing.
Has anyone made a mod for this?
If not, then would anybody be willing to?
I donít know if itís a big project, but I figure that it would work something like a script assuring that whenever a parachute is lost/used, a new one is immediately placed in the playerís inventory, ready for use.
So the only way to lose oneís parachute is death or arrest, as with most other weapons (though these can run out of ammo too, of course).
I mean, why not?
Itís not like it takes up any space for other items, apart from the thermal and night vision goggles. Who in their right mind would choose any of those two over UNLIMITED PARACHUTES?

Anyway, does anyone know something about anything?
Thank you biggrin.gif

NightFever
  • NightFever

    Rat

  • Members
  • Joined: 25 Jul 2011

#2

Posted 24 August 2012 - 01:39 PM

Thats a nice mod idea.i've wanted this for so f****** long

Deji
  • Deji

    Coding like a Rockstar!

  • Feroci
  • Joined: 24 Dec 2007
  • None
  • Contribution Award [Mods]

#3

Posted 24 August 2012 - 03:05 PM Edited by Deji, 24 August 2012 - 03:09 PM.

Mod requests go in a thread called the 'Request Mod Thread': http://www.gtaforums...howtopic=378015

But because this is such an easy request to fulfill and I'm feeling generous, I'll give you the code in SCR.
CODE
{$CLEO}
{$VERSION 3.0.1000}
0000:
WHILE TRUE
† †WAIT 0
† †IF IS_PLAYER_PLAYING player1
† †THEN
† † † †IF NOT HAS_CHAR_GOT_WEAPON WEAPONTYPE_PARACHUTE
† † † †THEN
† † † † † †GIVE_WEAPON_TO_CHAR scplayer WEAPONTYPE_PARACHUTE 1
† † † †END
† †END
END

Graesholt
  • Graesholt

    Player Hater

  • Members
  • Joined: 26 Jul 2012

#4

Posted 25 August 2012 - 03:05 PM

Thank you so much Deji, for that script.
That was extremely nice of you, despite my ignorance as to where to post my inquiry.

However, the only mods I have ever made myself are ones that alter textures, so I do not have much experience with scripts. Therefore I do not have any Idea what to do with your amazing script.
I believe it is a CLEO scipt, yes? So I will have to put it in a .cs file, right?

Even though you have already been extremely helpful and generous, I am afraid that I require a little more assistance.
If you or anyone could only tell me how to make this script functional, II would be most grateful.

Thank you.

TheGodfather.
  • TheGodfather.

    Nobody likes me here...I think...

  • Members
  • Joined: 19 Jun 2012

#5

Posted 25 August 2012 - 03:28 PM

1. Open Sanny builder
2. paste the code given by deji
3. Compile the script.

NOTE: make sure you have CLEO installed.

Graesholt
  • Graesholt

    Player Hater

  • Members
  • Joined: 26 Jul 2012

#6

Posted 25 August 2012 - 04:06 PM

Thank you very much for your swift reply, arijitsen, you are most helpful.

However, when I attempt to compile the script (using the action 'compile' located the 'run' dropdown menu), I get the error: "Unknown directive IS_PLAYER_PLAYING player1."

I suppose the program does not understand the line, but I also suppose that Deji is an accomplished modder.
So what should I make of this?

Thank you.

r09867
  • r09867

    Player Hater

  • Members
  • Joined: 28 Aug 2013

#7

Posted 02 September 2013 - 01:04 PM

the script is like this biggrin.gif

// This file was decompiled using sascm.ini published by Seemann (http://sannybuilder....files/SASCM.rar) on 13.10.2007

{$VERSION 3.1.0027}
{$CLEO .CS}

//-------------MAIN---------------
thread "PARACHUTE"

:PARACHUTE_13
wait 0
Model.Load(#GUN_PARA)
if and
Model.Available(#GUN_PARA)
Player.Defined($PLAYER_ACTOR)
jf @PARACHUTE_13
jump @PARACHUTE_50

:PARACHUTE_50
wait 0
if and
Player.Defined($PLAYER_ACTOR)
not Actor.HasWeapon($PLAYER_ACTOR, 46)
jf @PARACHUTE_50
01B2: give_actor $PLAYER_ACTOR weapon 46 ammo -1 // Load the weapon model before using this
jump @PARACHUTE_50
end_thread

and have fun wink.gif




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users