OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Resources Beta Testing & Submission => Topic started by: dj_flash on 02 Sep 2002, 23:32:35

Title: purchase script for resistance
Post by: dj_flash on 02 Sep 2002, 23:32:35


[attachment deleted by admin]
Title: Re:purchase script for resistance
Post by: Fishion on 03 Sep 2002, 17:23:32
I've tried to fool around with the Addweapon Command,
which works well for AI units but only works once per mission
and weapon-slot (don't know why) for the Player...
so far I don't see much other chance than to actually put
the weapon in an "Weapon-Holder" (like dropping it) or
in an Ammo-Box.

-Fishion
Title: Re:purchase script for resistance
Post by: Soldier8Boy on 04 Sep 2002, 05:24:48
Could I make a request of you, dj_flash, please? I'm not sure of where the pics of the resistance pistols and ammo are. Could you make a new version that includes one pic, please?

Thanks
Title: Re:purchase script for resistance
Post by: dj_flash on 04 Sep 2002, 13:32:20
The images for the resistance stuff are under
\o\Guns\....

But the hand guns do not have the same naming conventions like the normal weapons.

Here is an configuration example:

Some ] get killed by the Forum so be carefull with copy&paste.

_ItemsToBuy = _ItemsToBuy + ["Uzi","\o\Guns\w_uzi.paa",400,2,"Weapon",["UZI",1]]];
_ItemsToBuy = _ItemsToBuy + ["5 Uzi Magazine","\O\Guns\m_uzi.paa",15,10,"Magazine",["UZIMag",5]]];

_ItemsToBuy = _ItemsToBuy + ["Scorpion","\o\Guns\skorpion.paa",400,2,"Weapon",["Skorpion",1]]];
_ItemsToBuy = _ItemsToBuy + ["5 Scorpion Magazine","\O\Guns\m_uzi.paa",15,10,"Magazine",["SkorpionMag",5]]];

I will make a newer version later when i have more time.
Title: Re:purchase script for resistance
Post by: vektorboson on 15 Sep 2002, 14:28:20
I've tried to fool around with the Addweapon Command,
which works well for AI units but only works once per mission
and weapon-slot (don't know why) for the Player...

It surely works! If there is no text in the upper-left corner showing your weapon then press SPACE (or your key for changing weapons), this should actually work.

@dj_flash
If you'd like to keep player's weapons you had eventually to make a backpack system, or like Fishion already said, you can create a weapon holder.
Title: Re:purchase script for resistance
Post by: Gameer_77 on 15 Sep 2002, 16:03:06
A Back-pack system...GENIOUS!!!!!  ::)

 8)PEACE
Title: Re:purchase script for resistance
Post by: mcnils on 01 Oct 2002, 09:09:40

uhmn i tested the script, very cool indeed!!!  ;D 8)
I added all the west units/empty vehicles and some weapons to purchase in the script,
it would be nice to use this in multy player, in this way players can select what vehicles and weaps they want to use.
Players would gain points destroying enemy objectives or kiling enemy players..


only problem is that i am not a real ace in scripting..
well this was the idea..