Changing faction's kits/weapons.

Making or wanting help making your own asset? Check in here
Post Reply
walt300
Posts: 4
Joined: 2015-11-01 11:51

Changing faction's kits/weapons.

Post 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.
walt300
Posts: 4
Joined: 2015-11-01 11:51

Re: Changing faction's kits/weapons.

Post by walt300 »

Anyone?
fad008
Posts: 19
Joined: 2015-09-24 16:22

Re: Changing faction's kits/weapons.

Post by fad008 »

Check item index in weapon .tweak file

It should not be any conflict in weapons item index in your kit.
walt300
Posts: 4
Joined: 2015-11-01 11:51

Re: Changing faction's kits/weapons.

Post 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
KSVM_UA_
Ukrainian Forces Faction Lead
Posts: 141
Joined: 2014-03-22 05:52

Re: Changing faction's kits/weapons.

Post by KSVM_UA_ »

1. This is Grenadier kit.

2. ObjectTemplate.addTemplate mecrif_g3zpointugl

to:
ObjectTemplate.addTemplate rurif_ak47

If i remember it correctly.
"also known as shittiest PR-team signature pic wearer"
Image
walt300
Posts: 4
Joined: 2015-11-01 11:51

Re: Changing faction's kits/weapons.

Post by walt300 »

Thank you very much Wing Walker
Post Reply

Return to “PR:BF2 Community Modding”