See
KoRnFlakes Tutorial for part #1
Now on this part of the tutorial i'll explain how to change the flash that appears when shooting, and how to make a weapon act like a panzerfaust, and some other things.
Open the bar_mp script, and find
"viewFlashEffectfx/muzzleflashes/heavy_viewmp.efx"
The effect that appears when shooting with the BAR is
heavy_viewmp.efx
Lets change that effect to a AA-gun effect.
You can see all the effects in
pak5/fx
The effect that the AA-gun uses is the
turretfire.efx
So change the
heavy_viewmp.efx to
turretfire.efx
Save it in a pk3 named like Weaponmod.pk3 for example.
Then start CoD and join amaricans with BAR:
Now open the kar98k_mp script, we are going to make the kar shoot rockets, this is harder than just changing one single value.
first, at the start of the script, change
weaponTypebulletweaponClassrifle to
weaponTypeprojectileweaponClassrocketlauncher
now paste those lines at the end of the script:
explosionRadius256explosionInnerDamage200explosionOuterDamage10projectileSpeed180projectileModelxmodel/weapon_panzerfaust_rocketprojExplosionTyperocketprojExplosionEffectprojExplosionSoundprojImpactExplode1projTrailEffectprojectileDLight200projectileRed .4projectileGreen1projectileBlue .4
this will show the projectile/rocketlauncher -script what to shoot
now start CoD again and see the result:
There are also some other thing that you can mod:
Try changing the weapon_panzerfaust_rocket of the modded kar to one of the other xmodels located in pak0.pk3
Open one of the pistol files and set semiauto to 0 so it is automatic.
change one of the muzzleflash effects to mortarflash.efx
change the projectilespeed at the kar to something higher, makes it look like an exploding sniperbullet.
Try to discover some things yourself, almost everything is modable.
Have Fun
