Forum Jump :

Author Message


Posts: 1189
Rank:


Level: Member

Country: tr
Location:
Occupation: Computer Science student
Age: 20
In-game name: Wak

 
#1 Posted at 2014-06-13 03:18        
     
The script is taken down ATM, something wrong with addMagazine.

The inventory is not working like how it did in ArmA 2.


Single-shot PCML Launcher

by
654wak654


Description:
The first thing is that everything in this description is optional, which means you can configure them to your needs easily! Basically this is a small script to make the PCML not require ammo and be a single-shot launcher, like it's real live variant NLAW. It spawns a "prop" of the used rocket soon as you fire it and switch to your primary weapon. It also has an option to look for either a vest or backpack to put the temporary ammo in, so for example if you're a civilian you won't be able to fire the launcher, just like an actual civilian whouldn't be.


Features:
-Choose which kind of equipment a person needs to fire the launcher.
-Choose if you want used launcher "props" to spawn or not.
-You can also have those "props" deleted after a certain time, for continuous missions eg.: Domination or Altis Life.
-Small but efficent! 3kb script, gets the job done.


Installation:
Copy paste the scripts folder in to your mission directory, put
execVM "scripts\1shotAT\noAmmoAT.sqf"
in the init.sqf


Included files:
scripts\1shotAT\noAmmoAT.sqf


Usage:
For people, clans, or mission makers that wants single-shot launchers but don't want to install mods. Also as I mentioned above good for stopping unequipped people from firing them, and performance friendly!


Change log:
v1.1
-Removed RPG-42, since devilslayersbane has notified me it's not actually a single-shot launcher in real life.
-Added the prop function
-Added parameters for everything


Credits & Thanks:
Huge, by huge I mean all the credit goes to LowSpeedHighDrag's old script for ArmA 2 (from 2010).
Here is the link to that, for documentation. Almost none of his original code is left in, but he's the one who came up with the idea.

This post was edited by 654wak654 (2014-06-21 17:53, ago)

Sometimes I like to think as I started the whole "earplugs" thing.

W0lle: The only advice I can give you is: Do not try to understand BI. You will not succeed and it only makes your brain go boom. I would even go so far and say that not even they understand their own actions :-D.

#define getDamage getDammage

Author Message


Posts: 4
Rank:


Level: Member

Country: us
Location:
Occupation: Student
Age:
In-game name:

 
#2 Posted at 2014-06-14 06:03        
     
Not to be that guy, but the RPG-32 (the RPG-42 real life variant) is not a single shot laucher. The NLAW (PCML) is, but the rpg isn't.

Sources: http://world.guns.ru/grenade/rus/rpg-32-e.html
http://en.wikipedia.org/wiki/RPG-32
http://www.militaryfactory.com/smallarms/detail.asp?smallarms_id=563

Again, not to be a jerk, but realistically speaking, the RPG-42 shouldn't be single shot. It's a Rocket Propelled grenade launcher, not a man-portable recoiless rifle.


Advertisement


Author Message


Posts: 1189
Rank:


Level: Member

Country: tr
Location:
Occupation: Computer Science student
Age: 20
In-game name: Wak

 
#3 Posted at 2014-06-17 10:21        
     
Hey bane thanks for the hint, I actually checked your sources and removed the RPG-42 from the script when I upgraded it. People can still put it in, but I will keep it out since the purpose is realism here.

Sometimes I like to think as I started the whole "earplugs" thing.

W0lle: The only advice I can give you is: Do not try to understand BI. You will not succeed and it only makes your brain go boom. I would even go so far and say that not even they understand their own actions :-D.

#define getDamage getDammage