G'day folks,
I'm not sure where to post this question but I imagine it can be resolved via script.... hopefully.
The .30 cal browning, either (stand alone) on it's stand or mounted to jeep doesn't work in multiplayer which leaves the game very much one-sided because the more lethal MG42 works well in multiplayer.
Would it be possible to use a trigger and script to take control of the .30 cal and fire it in a multiplayer map?
I have searched tutorials and Google for a solution to no avail.
There's no write-up in the entities window for it and very few options. I selected the only relevant option being the "deathmatch" checkbox but that just made the gun and jeep disappear when tested in FFA and TDM.
There doesn't appear to be a scr for the 30cal so I copied the two scr files for the mg42 and placed them in the global folder before renaming them from "mg42.scr" & "mg42_active.scr" to "30cal.scr" & "30cal_active.scr", respectively.
I used the "Find" & "Replace" function of WordPad to change all instances of "mg42" to "30cal" in both scr files.
I added the following lines to my map's scr, before the "level waittill spawn".
I set the 30cal model to "playerusable" in the entities window. As noted on the first line of the mg42.scrCode:exec global/30cal.scr exec global/30cal_active.scr
I tried both values "1" then after that compile and test I tried "0". Nether had any effect on either of the two 30cal guns or the mg42.
And of course I re-packed the pk3 and moved it to the "main" directory before testing.
I've since found a third mg42 related scr located in Breakthrough, called "mg42init" which binds the player to the gun but I left that alone as I'm editing for AA which doesn't have that file and I feel I'm sinking deeper in doodoo.
I'm not seeing anything for the .30cal in either expansions nor is it listed in the "weapons.scr" whereas the mg42 is.
So yeah, I've tried to work it out myself with every possibility that seems logical to me, a humble multiplayer mapper.
I'm just wondering if this has been done in a multiplayer map before and if so, am I getting close or barking up the wrong tree?
Any help graciously accepted and appreciated.
Cheers.
A new day, a new map, a new problem. lol It never ends.