Page 1 of 1

Changing faction's kits/weapons.

Posted: 2015-11-01 11:59
by walt300
Hello.
If I want to change the MEC weapons what should I do?
I tried to replace the weapons in the _sp.con files with another ones but to no avail as the game crashed while loading the map.

I wish if somebody could help me with that.

Re: Changing faction's kits/weapons.

Posted: 2015-11-02 08:36
by walt300
Anyone?

Re: Changing faction's kits/weapons.

Posted: 2015-11-02 16:59
by fad008
Check item index in weapon .tweak file

It should not be any conflict in weapons item index in your kit.

Re: Changing faction's kits/weapons.

Posted: 2015-11-03 10:49
by walt300
fad008 wrote:Check item index in weapon .tweak file

It should not be any conflict in weapons item index in your kit.
Thanks but can you be more specific please?

This is the "mec_assault_alt_sp" file. What do I need to change in order to give the soldier an AK-47 instead of the G3?

Code: Select all

ObjectTemplate.create Kit mec_assault_alt_sp
ObjectTemplate.saveInSeparateFile 1
ObjectTemplate.setNetworkableInfo KitInfo
ObjectTemplate.kitType Assault
ObjectTemplate.aiTemplate Assault
ObjectTemplate.geometry mec_kits
ObjectTemplate.geometry.kit 0
ObjectTemplate.geometry.dropGeom 18
ObjectTemplate.setHasCollisionPhysics 1
ObjectTemplate.setCollisionMesh kitcol
ObjectTemplate.abilityRestoreRate 0.15
ObjectTemplate.abilityInVehicleRadius 0
ObjectTemplate.abilityInVehicleStrength 0.0
ObjectTemplate.abilityInVehicleMaterial 84
ObjectTemplate.cullRadiusScale 100000
ObjectTemplate.timeToLiveAfterDeath 300

rem -------------------------------------
ObjectTemplate.addTemplate kni_g3a3bayonet
ObjectTemplate.addTemplate klappspaten
ObjectTemplate.addTemplate mecrif_g3zpointugl
ObjectTemplate.addTemplate mecgl_g3zpointugl
ObjectTemplate.addTemplate mecgl_g3zpointugl_smoke
rem ObjectTemplate.addTemplate mecgl_g3zpointugl_flare
rem rem ObjectTemplate.addTemplate hgr_smoke
rem ObjectTemplate.addTemplate binocular
ObjectTemplate.addTemplate medikit_dressing_arab
rem -------------------------------------

ObjectTemplate.createComponent Ability
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_ASSAULT_MEC_LIMITED"
ObjectTemplate.vehicleHud.miniMapIcon		"Ingame\Kits\Icons\kit_Grenadier_outline.tga"
ObjectTemplate.vehicleHud.vehicleIcon		"Ingame\Kits\Icons\kit_Grenadier.tga"
ObjectTemplate.vehicleHud.spottedIcon 		"Ingame\GeneralIcons\empty.tga"
ObjectTemplate.vehicleHud.pantingSound		S_SprintBreath
ObjectTemplate.vehicleHud.injurySound		S_Injury
ObjectTemplate.vehicleHud.vehicleType 		7

Re: Changing faction's kits/weapons.

Posted: 2015-11-04 20:13
by KSVM_UA_
1. This is Grenadier kit.

2. ObjectTemplate.addTemplate mecrif_g3zpointugl

to:
ObjectTemplate.addTemplate rurif_ak47

If i remember it correctly.

Re: Changing faction's kits/weapons.

Posted: 2015-11-05 23:02
by walt300
Thank you very much Wing Walker