Allies spawn with no weapon

Started by Intrinsic, March 06, 2008, 05:26:24 PM

Previous topic - Next topic

Intrinsic

Hi I am running Ivan the Terribles m6l2a.  There is a weapon swap mixed into the map scr that gives both teams ONLY the weapons that have sound due to the sound issues.  It works great, the only problem that I have is that the Allies spawn with no weapon at all, and you have to scroll to get to it.  I know it doesnt seem like a huge issue, but it becomes a complaint when the axis are swarming the Allied spawn and they get shot before they have a weapon.  I did a search, but to no avail. Any help would be appreciated!

   

   Here is the code:

   

   //-----------------------------------------------------------------------------

   

   loadout:

         while (1)

         {

   

         waitframe

   

         for (local.i = 1; local.i <= $player.size; local.i++)

            {

            local.player = $player[local.i]

            

            if (local.player.dmteam=="axis")

               {

               $player[local.i] take models/weapons/panzerschreck.tik

               $player[local.i] take models/weapons/silencedpistol.tik

               $player[local.i] give models/weapons/mp44.tik

               $player[local.i] give models/weapons/mp40.tik

               $player[local.i] give models/weapons/KAR98sniper.tik

               $player[local.i] give models/weapons/kar98.tik

               }

            if (local.player.dmteam=="allies")

               {

               $player[local.i] take models/weapons/bar.tik

               $player[local.i] take models/weapons/m1_garand.tik

               $player[local.i] take models/weapons/bazooka.tik

               $player[local.i] take models/weapons/colt45.tik

               $player[local.i] take models/weapons/silencedpistol.tik

               $player[local.i] give models/weapons/mp44.tik

               $player[local.i] give models/weapons/thompsonsmg.tik

               $player[local.i] give models/weapons/springfield.tik

               $player[local.i] give models/weapons/kar98.tik

               $player[local.i] give models/weapons/p38.tik

               }

            }

         }

   end

   

   //-----------------------------------------------------------------------------

   

   Thanks again

[KC]Murdock

Hi this is not needed, so you could skip that part. There is a serverside weapon sound fix for single player to mp-maps conversion. See this thread http://mods-r-us.net/page.php?id=235">http://mods-r-us.net/page.php?id=235

   Hope it helps ya.

Intrinsic

Thanks for the response.  I tried to use the serverside fix, but it didn't work, some could hear sounds and some couldn't.  Then, I searched high and low for every available serverside fix, but none of them worked.  It could be a conflict with another mod like my all weapons mod or something, but I have also read quite a few people say that there is no serverside fix.  Ugh, lol.  This method works, except for the not spawning with a weapon bit.  Thanks again!

Salombo

Have you tried

   

   $player[local.i] use models/weapons/kar98.tik or use weaponclass rifle
_______________________
Start Search Here B)

Intrinsic

No, thank you!  Where would I put this in the above code?

Salombo

if (local.player.dmteam=="allies")

   {

   $player[local.i] take models/weapons/bar.tik

   $player[local.i] take models/weapons/m1_garand.tik

   $player[local.i] take models/weapons/bazooka.tik

   $player[local.i] take models/weapons/colt45.tik

   $player[local.i] take models/weapons/silencedpistol.tik

   $player[local.i] give models/weapons/mp44.tik

   $player[local.i] give models/weapons/thompsonsmg.tik

   $player[local.i] give models/weapons/springfield.tik

   $player[local.i] give models/weapons/kar98.tik

   $player[local.i] give models/weapons/p38.tik

   [orange]$player[local.i] use models/weapons/kar98.tik or use weaponclass rifle[/orange] they should spawn with the rifle in hand

   }

   

   Not sure, but worth the try I think.
_______________________
Start Search Here B)

Intrinsic

Darn, just kept crashing.  Thanks a lot though, I appreciate all of the help.

Salombo

That's not good :blush ... sorry.
_______________________
Start Search Here B)

bdbodger

[yellow]http://bodger-mods.com/default.aspx[/yellow][/b]
I do smoke. If this bothers anyone I suggest you take a look around at the world we live in....and shut the f*** up.
:)