[?] How does a Map know to use a kit?
Posted: 2010-09-30 03:24
More accurately, how would a map know to use a kit that I've switched around to make it use the Lee-Enfields.
So, what I've done so far, which all lies within the map's folder
in the Server.zip/ServerArchives.con I wrote:
Thank You in Advance
Edit: in red. Nothing is changed outside of the map folder, I thought I should Highlight this. I am doing this for a community map that probably wont see the light of the larger community so we would like to keep the changes localized and completely within the map's folder.
So, what I've done so far, which all lies within the map's folder
in the Server.zip/ServerArchives.con I wrote:
in the custom.zip/kits/hamas_insurgent1.confileManager.mountArchive inits/factions_common.zip factions_common
fileManager.mountArchive inits/factions_taliban.zip factions_taliban
fileManager.mountArchive inits/factions_hamas.zip factions_hamas
fileManager.mountArchive Levels/trenches2/custom.zip Objects
Now, what seems to be missing here because I am emulating to a "T" all the other maps I have seen do this.ObjectTemplate.activesafe Kit hamas_insurgent1
ObjectTemplate.delete
ObjectTemplate.create Kit hamas_insurgent1
ObjectTemplate.saveInSeparateFile 1
ObjectTemplate.networkableInfo KitInfo
ObjectTemplate.kitType Support
ObjectTemplate.aiTemplate Support
ObjectTemplate.geometry hamas_kits
ObjectTemplate.geometry.kit 5
ObjectTemplate.geometry.dropGeom 15
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.setCollisionMesh kitcol
ObjectTemplate.dropHeadwear mec_helmet
ObjectTemplate.abilityRestoreRate 0.15
ObjectTemplate.abilityInVehicleRadius 0
ObjectTemplate.abilityInVehicleStrength 0
ObjectTemplate.abilityInVehicleMaterial 91
ObjectTemplate.cullRadiusScale 100000
ObjectTemplate.timeToLiveAfterDeath 300
rem -------------------------------------
ObjectTemplate.addTemplate iraqknife
ObjectTemplate.addTemplate klappspaten
ObjectTemplate.addTemplate insgr_enfield
ObjectTemplate.addTemplate hgr_rkg3
ObjectTemplate.addTemplate chsht_slugshot_idx5
ObjectTemplate.addTemplate ammokit
ObjectTemplate.addTemplate binocular
ObjectTemplate.addTemplate medikit_dressing_arab
rem -------------------------------------
ObjectTemplate.createComponent Ability
ObjectTemplate.ability.hasAmmoAbility 1
ObjectTemplate.ability.hasRepairingAbility 1
ObjectTemplate.createComponent AbilityHud
ObjectTemplate.abilityHud.ammoSound S_Resupply
ObjectTemplate.abilityHud.healingSound S_Heal
ObjectTemplate.abilityHud.repairingSound S_Repair
ObjectTemplate.createComponent VehicleHud
ObjectTemplate.vehicleHud.hudName "HUD_TEXT_MENU_SPAWN_KIT_WARRIOR_HAMAS"
ObjectTemplate.vehicleHud.miniMapIcon "Ingame\Kits\Icons\kit_battle_rifle_Assault_outline.tga"
ObjectTemplate.vehicleHud.vehicleIcon "Ingame\Kits\Icons\kit_battle_rifle_Assault.tga"
ObjectTemplate.vehicleHud.spottedIcon "Ingame\GeneralIcons\empty.tga"
ObjectTemplate.vehicleHud.pantingSound S_SprintBreath
ObjectTemplate.vehicleHud.injurySound S_Injury
ObjectTemplate.vehicleHud.vehicleType 7
Thank You in Advance
Edit: in red. Nothing is changed outside of the map folder, I thought I should Highlight this. I am doing this for a community map that probably wont see the light of the larger community so we would like to keep the changes localized and completely within the map's folder.