Home   Help Search Login Register  

Author Topic: Jamming script  (Read 3977 times)

0 Members and 1 Guest are viewing this topic.

Cooba

  • Guest
Re:Jamming script
« Reply #30 on: 04 Feb 2005, 15:18:55 »
Ok, then i have one noob problem. I dont know how to write correct script (command) which check number of magazines in player (AI) slots.
Help please.

sorry for uncorrect english

Sophion

  • Guest
Re:Jamming script
« Reply #31 on: 05 Feb 2005, 23:00:15 »
*cough*

you can check the Command Reference for commands first, if that doesn't help then ask here (after you search of course). but this is a topic loosely related to your question. so... please ask at appropriate places  ;)

Offline Terox

  • Former Staff
  • ****
  • Follow the Sappers!
    • zeus-community.net
Re:Jamming script
« Reply #32 on: 06 Feb 2005, 13:24:56 »
Zeus ARMA2 server IP = 77.74.193.124 :2302
Teamspeak IP = 77.74.193.123

Shalashaska

  • Guest
Re:Jamming script
« Reply #33 on: 19 Feb 2005, 17:31:52 »
You were talking about jammed magazines, and I have aquestion, related in some way with this forum:
using a M249 (example), can I take out an Ammo-Box and load a common STANAG magazine?
The problem is to have this shown (in an old addon you could do something similar, but you kept seeing the previous magazine, even if it was different).

I already have the Model with the STANAG magazine loaded, but that's a single weapon, no match with different mags (Ammo-box included).

Quote
Then there might be perhaps 3 global arrays:
low_jam_rate = ["m16","ak47","ak74"]
med_jam_rate = ["pk","m60"]
high_jam_rate = ["...."]

M16 is between LOW and MED, M4 is MED and AK47 is (very) LOW -unless you're a terrorist (they always manage to jam an AK47, dunno why...)

Quote
Under normal conditions, what is a typical mean rounds between failure?    The new, fixed version of the British army's rifle, the SA80, fires an average of 8,000 rounds between failures in desert conditions, and 25,000 rounds in a variety of environments.  (At a rate of 150 rounds in 8m40s.)

Yeah, he's right.
the AWM (Artic Warfare Magnum) can fire at least 50.000 rounds before a check. In OFP you will NEVER shoot so many rounds, LOL !

FOR ANIMATIONS, ask to Sanctuary, he made very beautifull ones.

Finally, I have another question: in some guns, you can see the full recoil, with the slide which goes back, the hammer goes down and so on.
How do I realize something similar? I saw a .p3d model, and I noticed two slides... waht does it mean?  ???

Offline Terox

  • Former Staff
  • ****
  • Follow the Sappers!
    • zeus-community.net
Re:Jamming script
« Reply #34 on: 20 Feb 2005, 12:18:54 »
The magazines that a weapon can use are stated in the weapon's config

and as for the anims that are played they are also config entries
« Last Edit: 20 Feb 2005, 12:19:50 by Terox »
Zeus ARMA2 server IP = 77.74.193.124 :2302
Teamspeak IP = 77.74.193.123

Shalashaska

  • Guest
Re:Jamming script
« Reply #35 on: 20 Feb 2005, 12:33:25 »
Ok... The magazine can be put in the .cpp file, but what about changing Type of magazine and have it shown (BOX ---> STANAG) ?  ???

Offline Terox

  • Former Staff
  • ****
  • Follow the Sappers!
    • zeus-community.net
Re:Jamming script
« Reply #36 on: 20 Feb 2005, 16:35:14 »
the visible magazine is part of the weapon model

there isnt a weapon model without a magazine and then a magazine bolted to the model so as to speak, its all one thing

otherwise you would have to use a very fast setpos looping script and with lag it would look odd

what you could do is have hidden selections, eg, hide a texture and replace with another texture to make the mag look different.

dont know whether or not that is dynamically possible
Zeus ARMA2 server IP = 77.74.193.124 :2302
Teamspeak IP = 77.74.193.123

Shalashaska

  • Guest
Re:Jamming script
« Reply #37 on: 21 Feb 2005, 19:23:44 »
where shall I look so?

Offline Terox

  • Former Staff
  • ****
  • Follow the Sappers!
    • zeus-community.net
Re:Jamming script
« Reply #38 on: 22 Feb 2005, 16:36:18 »
these are all config entries, you will need to de pbo the addon to access these.

The hidden selections are basically textures that can be hidden from view and are created during the addon design

, eg have to have  a short and long barreled version of "myweapon"

you would create 2 config entries

Use the same model
have 2 hidden selections
Barrel_long
Barrel_short

and then have 2 config classes

class tx_mylongbarrelweapon: riffle
{
..... model="myweapon.p3d";
..... hiddenSelections[]={"Barrel_short"};
..... displayName="Longbarrel myweapon";
}

class tx_myshortbarrelweapon: riffle
{
..... model="myweapon.p3d";
..... hiddenSelections[]={"Barrel_long"};
..... displayName="shortbarrelbarrel myweapon";
}
Zeus ARMA2 server IP = 77.74.193.124 :2302
Teamspeak IP = 77.74.193.123

nmanjar

  • Guest
Re:Jamming script
« Reply #39 on: 22 Feb 2005, 21:47:11 »
well assume the soldier has been maintaining his weapon and leave m16 under low