Battlefield Modding Tutorials BFMODS https://battlefieldmodding.com/ssm/phpBB3/ |
|
Changing Kit Contents Vanilla 42 https://battlefieldmodding.com/ssm/phpBB3/viewtopic.php?f=3&t=4318 |
Page 1 of 2 |
Author: | Sheppard [ Mon Aug 25, 2008 3:39 am ] |
Post subject: | Changing Kit Contents Vanilla 42 |
I want to change some weapon kit contents, like remove medpack, add binoculars, etc. I saw an old post about this by silversound, and a new one by volt, but I'm still having no luck. Is there a way to remove certain kit contents, and add new ones in their place? |
Author: | Why Two Kay [ Mon Aug 25, 2008 3:44 am ] |
Post subject: | Re: Changing Kit Contents Vanilla 42 |
Look in objects.rfa for the kits, all the stuff is added to the kit in that file. Rem out the lines you don't want, and add new ones. You can't have 2 weapons that use the same index (same button on keyboard, like primary weapon = 3). Of course, not server-side. |
Author: | Sheppard [ Mon Aug 25, 2008 3:46 am ] |
Post subject: | Re: Changing Kit Contents Vanilla 42 |
Right, I was pretty sure about that. But if I remove, say medpack, and add binoculars, it will work? |
Author: | Sheppard [ Mon Aug 25, 2008 4:06 am ] |
Post subject: | Re: Changing Kit Contents Vanilla 42 |
kk, thanks. I was using removeTemplate medpack = crash. Not the index #. Ok, i think i can figure it out now. |
Author: | Sheppard [ Mon Aug 25, 2008 4:58 pm ] |
Post subject: | Re: Changing Kit Contents Vanilla 42 |
Author: | Urglub [ Mon Aug 25, 2008 6:11 pm ] |
Post subject: | Re: Changing Kit Contents Vanilla 42 |
#ยค%& 0-1-2-3-4-5 |
Author: | Sheppard [ Mon Aug 25, 2008 6:41 pm ] |
Post subject: | Re: Changing Kit Contents Vanilla 42 |
Very helpful.... But how come you have to use the #s in a patchfile when it addTemplates the names in objects? Plus several objects use the same indexes.... I'm very, very, very thoroughly confused. |
Author: | Urglub [ Tue Aug 26, 2008 9:47 am ] |
Post subject: | Re: Changing Kit Contents Vanilla 42 |
ObjectTemplate.create Kit US_Medic ObjectTemplate.setType Medic ObjectTemplate.setKitTeam 2 ObjectTemplate.geometry Kit_Allies_Medic ObjectTemplate.setHasCollisionPhysics 1 ObjectTemplate.networkableInfo KitInfo rem ObjectTemplate.addTemplate Medic_helm_us <--- Template 0 Remove this template makes template 1 to 0 ObjectTemplate.addTemplate US_Medic_hippack <--- Template 0 ObjectTemplate.addTemplate US_Britt_Bacpac <--- Template 1 ObjectTemplate.setHealthBarIcon "Ingame/Healthbar_empty_medic_64x64.tga" ObjectTemplate.setHealthBarFullIcon "Ingame/Healthbar_full_medic_64x64.tga" ObjectTemplate.addWeaponIcon "Weapon/Icon_alliesKnife.tga" ObjectTemplate.addWeaponIcon "Weapon/Icon_colt.tga" ObjectTemplate.addWeaponIcon "Weapon/Icon_thompson.tga" ObjectTemplate.addWeaponIcon "Weapon/Icon_grenadeallies.tga" ObjectTemplate.addWeaponIcon "Weapon/Icon_medpack.tga" ObjectTemplate.setKitIcon 3 "kits/Icon_medic_allies_selected.tga" ObjectTemplate.setKitName 3 "RESPAWN_MEDIC" ObjectTemplate.setKitActiveName 3 "RESPAWN_ACTIVE_MEDIC" ObjectTemplate.addTemplate Thompson <--- Template 2 ObjectTemplate.addTemplate Colt <--- Template 3 ObjectTemplate.addTemplate KnifeAllies <--- Template 4 ObjectTemplate.addTemplate MedPack <--- Template 5 ObjectTemplate.addTemplate GrenadeAllies <--- Template 6 |
Page 1 of 2 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |