Home   Help Search Login Register  

Author Topic: Primary/Secondary Weapons  (Read 1300 times)

0 Members and 1 Guest are viewing this topic.

jamie_psx

  • Guest
Primary/Secondary Weapons
« on: 17 Jun 2003, 00:44:07 »
Quick question:

What in an addon's cpp file do I change to make it from a primary weapon, to a secondary weapon?

I want my soldiers to carry a regular assault rifle and a combat shotgun.
But the shotgun and the rifle are mutually exclusive as far as OFP is concerned so I can't have them both.

I want the shotgun to be secondary (just like an RPG or AAlauncher is).

Shaggy

  • Guest
Re:Primary/Secondary Weapons
« Reply #1 on: 18 Jun 2003, 08:03:17 »
Hmm...Good question I'd like to hear the answer to that aswell :)

registered_fugitiv

  • Guest
Re:Primary/Secondary Weapons
« Reply #2 on: 18 Jun 2003, 10:47:53 »
i think i tried making a weapon once that took the slot and i couldnt get it to work properly
so no i dont think it is possible as the animations for the law/rpg are totally different to the primary weapon ones


jamie_psx

  • Guest
Re:Primary/Secondary Weapons
« Reply #3 on: 18 Jun 2003, 16:02:30 »
Well didn't OFP:Resistance's Uzi get changed from a being originally a secondary to a primary weapon?


Vyper

  • Guest
Re:Primary/Secondary Weapons
« Reply #4 on: 19 Jun 2003, 16:09:43 »
Now there was an ingram but it used the same animations as a pistol....you could have a Sawn-off but thats not very military...i'm stumped on this one, could have new animations i guess?

Vyper

jamie_psx

  • Guest
Re:Primary/Secondary Weapons
« Reply #5 on: 20 Jun 2003, 03:40:33 »
I think I have it, but I have no idea how to script (or adjust a soldier addon) for it.

Just like you can put one weapon down (on the ground or to a vehicle) and pickup another, you can make a soldier addon with a backpack (that's a backpack in the addon code, not necessarily actually visible).

Then through the action menu you could (for example) select:

"Put away M16A2 take Binelli Shotgun"

and then when you have the Shotgun, through the action menu, you can do the reverse.

Now whose gonna code a new "Soldier addon" for me?
I need a volunteer!
You there!
Yes, you!
The odd-looking one, Step Forward!   ;D  ;D  ;D
« Last Edit: 20 Jun 2003, 15:29:27 by jamie_psx »

asmodeus

  • Guest
Re:Primary/Secondary Weapons
« Reply #6 on: 20 Jun 2003, 04:12:13 »
@ jamie_psx

Quote
The queer-looking one, Step Forward!

Even said jokingly, some people could be offended by that, so please refrain from making such statements.  

About your idea, sounds interesting!  So the gun you put away would probably have to dissapear this way, but it could possibly work...   ;)

Asmo

jamie_psx

  • Guest
Re:Primary/Secondary Weapons
« Reply #7 on: 20 Jun 2003, 15:28:41 »
@ jamie_psxEven said jokingly, some people could be offended by that, so please refrain from making such statements.  

Asmo

Sorry 'bout that.
I meant it in the original sense of the word ... as in "strange looking".  :)

asmodeus

  • Guest
Re:Primary/Secondary Weapons
« Reply #8 on: 20 Jun 2003, 15:40:07 »
No problemo at all jamie!

Just trying to keep some order around this place...   :o   ::)

I could tell you didn't mean it that way, but some people could take it that way..   ;)

BTW, when I have time I'll look into your "invisible backpack" idea.. I like the possibilities it could entail and think it could add to our mod in certain situations.    :)

Asmo