Actually, after not giving up, i looked for a way to add a spawn for a vehicle already existing in the map whithout having to modify the client side. From what i understand you can't add a new spawn instance since it would desynk with the client. So i thought: "why don't i use an already existing instance?"
I took the "VehicleSpawnEntityData" of a tank in Heavy Metal and changed the vehicle reference from:
Code: Select all
<field ref="objects/vehicles/land/m1a2/m1a2/d892f1c3-91e7-4793-8bb4-39b686d37e1d" name="Vehicle" />
to:
Code: Select all
<field ref="objects/vehicles/land/cav/cav/207ecf50-42d9-4ea0-8c8c-baa0c62e451a" name="Vehicle" />
the one of a jeep (they are already present in Heavy Metal), and also made shure to change all settings so they would be compatible with the jeep (MaxVehicles, SpawnDelay, ApplyDamageToAbandondedVehicles, EnterRestriction etc...).
And to my surprise it worked!
This will shurely need further testing but this should mean a lot of new possibilities.
Keep in mind that mounted weapons (like AA, SMGs, TOWs etc...) count as vehicles and since some of them are rarely used it would be simple to substitute them into a helicopter or a quadbike and then change their coordinates to wherever you want.
Also now you could have multiple UAVs, something we weren't able to do before.
Please tell me if this works for you guys and if you find out problems or limitations of this method.
Also if you have in mind some other uses of it please share
.
Happy modding
!