Home
Intel Depot
Editors Depot
Missions Depot
Addons Depot
Forum
Welcome, Guest
Friday 24th May 2013, 18:42:10
Home
Help
Search
Login
Register
OFPEC Forum
OFPEC Forum
»
Addons & Mods Depot
»
Arma2 - Configs & Scripting
(Moderators:
Hawkins
,
Sparky
,
HitmanFF
) »
Laser Battery as Pistol Magazine
Pages: [
1
]
Go Down
« previous
next »
Send this topic
Print
Author
Topic: Laser Battery as Pistol Magazine (Read 332 times)
0 Members and 1 Guest are viewing this topic.
JasonO
OFPEC Patron
Offline
Oh no...
Laser Battery as Pistol Magazine
«
on:
27 Dec 2009, 21:43:54 »
Hey everyone,
This may seem like a weird one, but.... how would I make my own Magazine (which is just a newly defined magazine inheriting everything but the name from the laser batteries) work with a pistol so that it has the same function as the laser marker?
Basically I want it so when the pistol is fired it doesn't fire anything, but simply turns something on or off in a script. The laser marker does exactly that job and its something I want to replicate with my own battery magazine and handgun model.
I tried copying the config and even assigning my pistol to use the laser batteries and it did not work.
Does anyone know a work around to what I need to achieve, or have I missed something?
Thanks for your help, hope everyone had a good Christmas.
Regards,
Jason
«
Last Edit: 27 Dec 2009, 21:47:36 by JasonO
»
Logged
TNL - The New Life RPG
DeanosBeano
Addons Depot Staff
Offline
SirDeanosbeano bstowed on me by sui ;)
Re: Laser Battery as Pistol Magazine
«
Reply #1 on:
28 Dec 2009, 10:38:10 »
Hmm
you have many choices , the easiest is probably for you to replicate the laser config , the unit ,the ammo the magazine and simply change the model to your gun model , the anim may need changing too to the pistol one.
Problem with laser is it has a different simulation and because of this your pistol wont fire the laser magazines .
the only other alternative i can think of is to replicate your pistol Magazines and give them new ammo no sound and no Hit values , this way you can shoot it and nobody will get hurt , for this you will have to inherit your new ammo and magazine from a class that the pistol already shoots.
Logged
I love ofp
Gnat
Addons Depot
Administrator
Offline
I Bite!
Re: Laser Battery as Pistol Magazine
«
Reply #2 on:
29 Dec 2009, 10:16:30 »
Yeh, tough one.
The laser-Des stuff is very much hard-coded into the game, and offer little in the way of variance.
Not sure if a weapon (im not a weapon mod'er) can have a "Fired" EH assigned permanent (like a vehicle addon).
If so, then its probably a simple matter of assigning a script or two to the trigger and arming it either as a laser-Des or a normal gun with "dummy" ammo.
We're you expecting AI to use it when pointed at enemy ?
Logged
JasonO
OFPEC Patron
Offline
Oh no...
Re: Laser Battery as Pistol Magazine
«
Reply #3 on:
30 Dec 2009, 00:34:24 »
Only the player would use it, no AI.
The two reasons I wanted it was firstly, so the ammo showed as 1 and never went down (like actual ammo) and secondly so I can get a script to go off.
At the moment it actually uses real ammo and works off the fired event handler which works fine. I suppose I could make a large ammo count in the magazine, remove recoil and any muzzle detail etc.
Logged
TNL - The New Life RPG
Gnat
Addons Depot
Administrator
Offline
I Bite!
Re: Laser Battery as Pistol Magazine
«
Reply #4 on:
30 Dec 2009, 07:08:38 »
Maybe make it a 1 round mag and re-fill it with the scripe each time.
_ship addMagazine "1Rnd_GNTDummyGunA";
Logged
JasonO
OFPEC Patron
Offline
Oh no...
Re: Laser Battery as Pistol Magazine
«
Reply #5 on:
30 Dec 2009, 14:01:19 »
That's not a bad idea. If I cut the reload time it probably wouldn't be noticable.
Logged
TNL - The New Life RPG
Pages: [
1
]
Go Up
Send this topic
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
OFPEC The Editing Center
-----------------------------
=> General Announcements
=> Comments & Suggestions
=> Getting help with BI games
-----------------------------
Editors Depot - Mission Editing and Scripting
-----------------------------
=> Arma3 Alpha - Editing/Scripting General
=> Arma3 Alpha - Editing/Scripting Multiplayer
=> Arma3 Alpha - Editing/Scripting Resources Beta Testing & Submission
=> Arma2 - Editing/Scripting General
=> Arma2 - Editing/Scripting Multiplayer
=> Arma2 - Editing/Scripting Resources Beta Testing & Submission
=> ArmA - Editing/Scripting General
=> ArmA - Editing/Scripting Multiplayer
=> ArmA - Editing/Scripting Resources Beta Testing & Submission
=> OFP - Editing/Scripting General
=> OFP - Editing/Scripting Multiplayer
=> OFP - Editing/Scripting Resources Beta Testing & Submission
=> OFP Elite - Editing General
-----------------------------
Missions Depot
-----------------------------
=> Arma3 Alpha - Single Player Beta Testing
=> Arma3 Alpha - Multiplayer Beta Testing
=> Arma2 - Single Player Beta Testing
=> Arma2 - Multiplayer Beta Testing
=> ArmA - Single Player Beta Testing
=> ArmA - Multiplayer Beta Testing
=> OFP - Missions Beta Testing
=> OFPEC Campaign
=> Mission Discussion
===> Arma3 Alpha - Reviewed Missions
===> Arma2 - Reviewed Missions
===> ArmA - Reviewed Missions
===> OFP - Reviewed Missions
-----------------------------
Addons & Mods Depot
-----------------------------
=> Arma3 Alpha - Configs & Scripting
=> Arma3 Alpha - O2 and Models/Modelling
===> Arma3 Alpha - Texturing
=> Arma2 - Configs & Scripting
=> Arma2 - O2 and Models/Modelling
===> Arma2 - Texturing
=> Arma2 - Visitor 3 and Terrain Editing
=> Arma2 - Addons & Mods Beta Testing
=> Arma2 - Addons & Mods Discussion
=> ArmA - Configs & Scripting
=> ArmA - O2 and Models/Modelling
===> ArmA - Texturing
=> ArmA - Visitor 3 and Terrain Editing
=> ArmA - Addons & Mods Beta Testing
=> ArmA - Addons & Mods Discussion
=> OFP - Addons & Mods General
=> OFP - Addons & Mods Beta Testing
=> OFPEC Hosted Addons
Top of page