Jump to content

Sign in to follow this  
thefinn

Multiplayer Loadout Woes.

Recommended Posts

I've been playing around with loadouts for co-op for a week or more now.

Obviously, just adding weapons and magazines globally doesn't work "out of the box".

What I'd like to know is .. exactly how this is supposed to work - the difference between server-side addweapon and client-side addweapon and what this MEANS in-game.

I'd rather know how to fish, than be given a fish in this case, ok ?

Trying to piece together how client side vs server side works with ARMA through reading scripts is not really cutting it.

As far as code is concerned:

  Reveal hidden contents

Now after doing this, I am getting a bunch of the correct magazines, but no gun. The AI on the other hand is getting the guns, but no magazines! :)

I feel like I'm close... but...

Share this post


Link to post
Share on other sites

If anyone would like to take a look at the whole script, click on "Redressing Script", in my signature. And also mind that I haven't updated that script in probably 6 months, and I've learned a lot since then.

Edited by JShock

Share this post


Link to post
Share on other sites

Yeah I changed that a little bit, adding the while loop to deal with addmagazineglobal (which won't add a number of magazines, just one at a time).

Here's the whole script. I've fixed all ammo issues, however, under no circumstances will the player himself be issued a weapon other than the default (for whatever reason).

  Reveal hidden contents

Is there some magical reason the weapon needs to be given to the player on the client side or something ?

Edited by thefinn

Share this post


Link to post
Share on other sites

I have no issues using regular addWeapon and whatever.

I have a few scripts I run for respawn games, so if you die you spawn w/ same loadout.

If you need any help, or want to see the scripts just gimme a heads up.

I may forget I posted here lol

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×