B00MH3ADSH0T
Fresh NoobCaeks Here
+118|6394|Penrith,Nsw, Aus
I was looking in the .TWEAK files for the ak47 and i was changing some stuff around i can change the accuracy and damage and shit like that but i dont know how to give it more ammo heres the text if anyone can tell me what to edit thanks +1 for help.

rem *** Generated with Bf2Editor.exe [created: 2005/1/13 10:30]
GeometryTemplate.compressVertexData 1
GeometryTemplate.maxTextureRepeat 8
ObjectTemplate.activeSafe GenericFireArm rurif_ak47
ObjectTemplate.creator MBA-1:mba
ObjectTemplate.modifiedByUser tda
ObjectTemplate.saveInSeparateFile 1
rem ---BeginComp:WeaponHud ---
ObjectTemplate.createComponent WeaponHud
ObjectTemplate.weaponHud.weaponIcon Ingame\Weapons\Icons\Hud\RURIF_AK47.tga
ObjectTemplate.weaponHud.altWeaponIcon Ingame\Weapons\Icons\Hud\RURIF_AK47_mini.tga
ObjectTemplate.weaponHud.selectIcon Ingame\Weapons\Icons\Hud\Selection\RURIF_AK47.tga
ObjectTemplate.weaponHud.hudName KILLMESSAGE_WEAPON_ak47
ObjectTemplate.weaponHud.guiIndex 4
ObjectTemplate.weaponHud.altGuiIndex 52
ObjectTemplate.weaponHud.deviationFactor 5
ObjectTemplate.weaponHud.maxVisualDeviation 28
ObjectTemplate.weaponHud.minVisualDeviation 7
ObjectTemplate.weaponHud.disableOnSprint 1
rem ---EndComp ---
rem ---BeginComp:SingleFireComp ---
ObjectTemplate.createComponent SingleFireComp
ObjectTemplate.fire.addFireRate 2
ObjectTemplate.fire.addFireRate 0
ObjectTemplate.fire.fireInCameraDof 1
rem ---EndComp ---
rem ---BeginComp:DefaultAmmoComp ---
ObjectTemplate.createComponent DefaultAmmoComp
ObjectTemplate.ammo.reloadTime 4
rem ---EndComp ---
rem ---BeginComp:SoldierBasedRecoilComp ---
ObjectTemplate.createComponent SoldierBasedRecoilComp
ObjectTemplate.recoil.hasRecoilForce 1
ObjectTemplate.recoil.recoilForceUp CRD_UNIFORM/0.4/0.6/0
ObjectTemplate.recoil.recoilForceLeftRight CRD_UNIFORM/-0.45/0.45/0
ObjectTemplate.recoil.zoomModifier 0.8
ObjectTemplate.recoil.recoilGraphFrameCount 4
ObjectTemplate.recoil.recoilGraphExponent 4
ObjectTemplate.recoil.recoilGraphTotalMovement 0.6
rem ---EndComp ---
rem ---BeginComp:SoldierDeviationComp ---
ObjectTemplate.createComponent SoldierDeviationComp
ObjectTemplate.deviation.setFireDev 2.3 0.2 0.05
ObjectTemplate.deviation.minDev 0.45
ObjectTemplate.deviation.setTurnDev 0 0 0 0
ObjectTemplate.deviation.setSpeedDev 1 0.2 0.2 0.1
ObjectTemplate.deviation.setMiscDev 3 1.5 0.05
ObjectTemplate.deviation.devModStand 1.3
ObjectTemplate.deviation.devModCrouch 1.2
ObjectTemplate.deviation.devModZoom 0.8
rem ---EndComp ---
rem ---BeginComp:DefaultSoundComp ---
ObjectTemplate.createComponent DefaultSoundComp
rem ---EndComp ---
rem ---BeginComp:DefaultAnimationComp ---
ObjectTemplate.createComponent DefaultAnimationComp
rem ---EndComp ---
rem ---BeginComp:DefaultZoomComp ---
ObjectTemplate.createComponent DefaultZoomComp
ObjectTemplate.zoom.zoomDelay 0.08
ObjectTemplate.zoom.zoomLod 1
ObjectTemplate.zoom.addZoomFactor 0
ObjectTemplate.zoom.addZoomFactor 0.6
rem ---EndComp ---
ObjectTemplate.geometry rurif_ak47
ObjectTemplate.setCollisionMesh rurif_ak47
ObjectTemplate.mapMaterial 0 Collision_Material 0
ObjectTemplate.hasMobilePhysics 0
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.physicsType Mesh
ObjectTemplate.aiTemplate RuRif_AK47
rem -------------------------------------
ObjectTemplate.addTemplate S_rurif_ak47_Fire1P
ObjectTemplate.addTemplate S_rurif_ak47_Fire1P_Outdoor
ObjectTemplate.addTemplate S_rurif_ak47_Fire3P
ObjectTemplate.setPosition 0/0.013551/0.501526
ObjectTemplate.addTemplate S_rurif_ak47_BoltClick
ObjectTemplate.addTemplate S_rurif_ak47_TriggerClick
ObjectTemplate.addTemplate S_rurif_ak47_SwitchFireRate
ObjectTemplate.addTemplate S_rurif_ak47_Reload1P
ObjectTemplate.addTemplate S_rurif_ak47_Reload3P
ObjectTemplate.setPosition 0/-0.0279925/0.043941
ObjectTemplate.addTemplate S_rurif_ak47_Deploy1P
ObjectTemplate.addTemplate S_rurif_ak47_Deploy3P
ObjectTemplate.addTemplate S_rurif_ak47_Zoom
ObjectTemplate.addTemplate e_muzz_ak101
ObjectTemplate.setPosition 0.000722243/0.0135507/0.496039
ObjectTemplate.addTemplate e_shellejection_556
ObjectTemplate.setPosition 0.0140295/0.0168836/0.0694686
rem -------------------------------------
ObjectTemplate.animationSystem1P Objects/Weapons/Handheld/rurif_ak47/AnimationSystem1p.inc
ObjectTemplate.animationSystem3P Objects/Weapons/Handheld/rurif_ak47/AnimationSystem3p.inc
ObjectTemplate.projectileTemplate rurif_ak47_Projectile
ObjectTemplate.velocity 1000
ObjectTemplate.itemIndex 8
ObjectTemplate.delayToUse 1.2

ObjectTemplate.create GenericProjectile rurif_ak47_Projectile
ObjectTemplate.modifiedByUser tda
ObjectTemplate.createNotInGrid 1
ObjectTemplate.createdInEditor 1
rem ---BeginComp:DefaultCollisionComp ---
ObjectTemplate.createComponent DefaultCollisionComp
rem ---EndComp ---
rem ---BeginComp:DefaultDetonationComp ---
ObjectTemplate.createComponent DefaultDetonationComp
rem ---EndComp ---
rem ---BeginComp:DefaultProjSoundComp ---
ObjectTemplate.createComponent DefaultProjSoundComp
rem ---EndComp ---
rem ---BeginComp:DefaultRicochetComp ---
ObjectTemplate.createComponent DefaultRicochetComp
rem ---EndComp ---
rem ---BeginComp:DefaultPenetrateComp ---
ObjectTemplate.createComponent DefaultPenetrateComp
rem ---EndComp ---
ObjectTemplate.floaterMod 0
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.physicsType Point
ObjectTemplate.material 38
rem -------------------------------------
ObjectTemplate.addTemplate S_rurif_ak47_Projectile_Looping
rem -------------------------------------
ObjectTemplate.timeToLive CRD_NONE/0.5/0/0
ObjectTemplate.material 38
ObjectTemplate.minDamage 0.2
ObjectTemplate.damage 38

ObjectTemplate.activeSafe Sound S_rurif_ak47_Fire1P
ObjectTemplate.modifiedByUser tda
ObjectTemplate.soundFilename "objects/weapons/handheld/rurif_ak47/sounds/ak47_fire_1p_outdoor.wav"
ObjectTemplate.loopCount 0
ObjectTemplate.is3dSound 0
ObjectTemplate.stopType 1
ObjectTemplate.volume 0.7
ObjectTemplate.pitch 1
ObjectTemplate.pan 0.5
ObjectTemplate.reverbLevel 1
ObjectTemplate.pitchEnvelope 0/1/0.9/1.1/1/1/0/0.98/1.025/
ObjectTemplate.volumeEnvelope 0/1/0/1/1/1/0/0.9/1/


ObjectTemplate.activeSafe Sound S_rurif_ak47_Fire3P
ObjectTemplate.modifiedByUser tda
ObjectTemplate.soundFilename "objects/weapons/handheld/rurif_ak47/sounds/ak47_fire_3p.wav"
ObjectTemplate.loopCount 0
ObjectTemplate.is3dSound 1
ObjectTemplate.stopType 1
ObjectTemplate.volume 1
ObjectTemplate.pitch 1
ObjectTemplate.reverbLevel 1
ObjectTemplate.pitchEnvelope 0/1/0.9/1.1/1/1/0/0.97/1.04/
ObjectTemplate.volumeEnvelope 0/1/0/1/1/1/0/0.95/1/
ObjectTemplate.position 0/0.013551/0.501526
ObjectTemplate.minDistance 2
ObjectTemplate.halfVolumeDistance 6
ObjectTemplate.soundRadius 0.4

ObjectTemplate.activeSafe Sound S_rurif_ak47_BoltClick
ObjectTemplate.modifiedByUser tda
ObjectTemplate.soundFilename "objects/weapons/handheld/rurif_gp30/sounds/gp30_bolt_click.wav"
ObjectTemplate.loopCount 1
ObjectTemplate.is3dSound 0
ObjectTemplate.stopType 1
ObjectTemplate.volume 0.78
ObjectTemplate.pitch 1
ObjectTemplate.pan 0.5
ObjectTemplate.reverbLevel 0.5

ObjectTemplate.activeSafe Sound S_rurif_ak47_TriggerClick
ObjectTemplate.modifiedByUser nfe
ObjectTemplate.soundFilename "objects/weapons/handheld/uspis_92fs/sounds/mono/trigger_click.wav"
ObjectTemplate.loopCount 1
ObjectTemplate.is3dSound 0
ObjectTemplate.stopType 1
ObjectTemplate.volume 0.5
ObjectTemplate.pitch 1
ObjectTemplate.pan 0.5
ObjectTemplate.reverbLevel 1

ObjectTemplate.activeSafe Sound S_rurif_ak47_SwitchFireRate
ObjectTemplate.modifiedByUser tda
ObjectTemplate.soundFilename "objects/weapons/handheld/chrif_type95/sounds/type95_firerate.wav"
ObjectTemplate.loopCount 1
ObjectTemplate.is3dSound 0
ObjectTemplate.stopType 1
ObjectTemplate.volume 0.65
ObjectTemplate.pitch 1
ObjectTemplate.pan 0.5
ObjectTemplate.reverbLevel 0.3

ObjectTemplate.activeSafe Sound S_rurif_ak47_Reload1P
ObjectTemplate.modifiedByUser tda
ObjectTemplate.soundFilename "objects/weapons/handheld/rurif_ak47/sounds/ak47_reload_1p.wav"
ObjectTemplate.loopCount 1
ObjectTemplate.is3dSound 0
ObjectTemplate.stopType 1
ObjectTemplate.volume 0.67
ObjectTemplate.pitch 1
ObjectTemplate.pan 0.5
ObjectTemplate.reverbLevel 1

ObjectTemplate.activeSafe Sound S_rurif_ak47_Reload3P
ObjectTemplate.modifiedByUser tda
ObjectTemplate.soundFilename "objects/weapons/handheld/rurif_ak47/sounds/AK47_Reload_3p.wav"
ObjectTemplate.loopCount 1
ObjectTemplate.is3dSound 1
ObjectTemplate.stopType 1
ObjectTemplate.volume 0.67
ObjectTemplate.pitch 1
ObjectTemplate.reverbLevel 1
ObjectTemplate.position 0/-0.0279925/0.043941
ObjectTemplate.minDistance 0.7
ObjectTemplate.halfVolumeDistance 1.4

ObjectTemplate.activeSafe Sound S_rurif_ak47_Deploy1P
ObjectTemplate.modifiedByUser tda
ObjectTemplate.soundFilename "objects/weapons/handheld/rurif_ak47/sounds/ak47_deploy_1p.wav"
ObjectTemplate.loopCount 1
ObjectTemplate.is3dSound 0
ObjectTemplate.stopType 0
ObjectTemplate.volume 0.5
ObjectTemplate.pitch 1
ObjectTemplate.pan 0.5
ObjectTemplate.reverbLevel 1

ObjectTemplate.activeSafe Sound S_rurif_ak47_Deploy3P
ObjectTemplate.modifiedByUser tda
ObjectTemplate.soundFilename "objects/weapons/handheld/rurif_ak47/sounds/ak47_deploy_3p.wav"
ObjectTemplate.loopCount 1
ObjectTemplate.is3dSound 1
ObjectTemplate.stopType 0
ObjectTemplate.volume 0.5
ObjectTemplate.pitch 1
ObjectTemplate.reverbLevel 1
ObjectTemplate.minDistance 0.5
ObjectTemplate.halfVolumeDistance 1

ObjectTemplate.activeSafe Sound S_rurif_ak47_Zoom
ObjectTemplate.modifiedByUser mdo
ObjectTemplate.soundFilename "objects/weapons/handheld/rurif_bizon/sounds/zoom_generic.wav"
ObjectTemplate.loopCount 1
ObjectTemplate.is3dSound 0
ObjectTemplate.stopType 1
ObjectTemplate.volume 0.5
ObjectTemplate.pitch 1
ObjectTemplate.pan 0.5
ObjectTemplate.reverbLevel 1

ObjectTemplate.activeSafe Sound S_rurif_ak47_Projectile_Looping
ObjectTemplate.modifiedByUser tda
Invaderzim
Chicken wing?
+49|6452|Newcastle NSW Australia
Wouldnt have a clue but what folder are these files in?
david363
Crotch fires and you: the untold story
+314|6742|Comber, Northern Ireland
isnt that like not allowed?
xstax981
Community Modder
+93|6679
Add these lines so that in the DefaultAmmoComp section looks like this:

ObjectTemplate.createComponent DefaultAmmoComp
ObjectTemplate.ammo.nrOfMags 6 (change this value to whatever, this will control how many mags you have)
ObjectTemplate.ammo.magSize 1 (change this value too, this controls the amount of ammo in a mag)
ObjectTemplate.ammo.reloadTime 4

(I'm not exactly sure if that will work or not, try it out first )

Last edited by xstax981 (2007-03-26 03:35:58)

Zilla
Killa of threads
+122|6645|7th level of hell

Zomg Haxor!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
B00MH3ADSH0T
Fresh NoobCaeks Here
+118|6394|Penrith,Nsw, Aus

xstax981 wrote:

Add these lines so that in the DefaultAmmoComp section looks like this:

ObjectTemplate.createComponent DefaultAmmoComp
ObjectTemplate.ammo.nrOfMags 6
ObjectTemplate.ammo.magSize 1
ObjectTemplate.ammo.reloadTime 4

(I'm not exactly sure if that will work or not, try it out first )
Ill try it out brb.
DonFck
Hibernator
+3,227|6635|Finland

B00MH3ADSH0T wrote:

xstax981 wrote:

Add these lines so that in the DefaultAmmoComp section looks like this:

ObjectTemplate.createComponent DefaultAmmoComp
ObjectTemplate.ammo.nrOfMags 6
ObjectTemplate.ammo.magSize 1
ObjectTemplate.ammo.reloadTime 4

(I'm not exactly sure if that will work or not, try it out first )
Ill try it out brb.
*eagerly awaiting for the punkbuster kick-message*

I hope he saved the original if that happens. Otherwise, we will see a "anyone have the original AK47 script?"-thread appear shortly.
I need around tree fiddy.
B00MH3ADSH0T
Fresh NoobCaeks Here
+118|6394|Penrith,Nsw, Aus

DonFck wrote:

B00MH3ADSH0T wrote:

xstax981 wrote:

Add these lines so that in the DefaultAmmoComp section looks like this:

ObjectTemplate.createComponent DefaultAmmoComp
ObjectTemplate.ammo.nrOfMags 6
ObjectTemplate.ammo.magSize 1
ObjectTemplate.ammo.reloadTime 4

(I'm not exactly sure if that will work or not, try it out first )
Ill try it out brb.
*eagerly awaiting for the punkbuster kick-message*

I hope he saved the original if that happens. Otherwise, we will see a "anyone have the original AK47 script?"-thread appear shortly.
Its in my mod folder for private use.

Last edited by B00MH3ADSH0T (2007-03-26 04:02:43)

-[Silver.Inc*
BF2s AU Server Admin
+315|6584|Melbourne, Australia.

david363 wrote:

isnt that like not allowed?
This guys smart
B00MH3ADSH0T
Fresh NoobCaeks Here
+118|6394|Penrith,Nsw, Aus

-[Silver.Inc* wrote:

david363 wrote:

isnt that like not allowed?
This guys smart
Are you guys joking or what because i cant tell, this is for a mod im editing in singleplayer.

Board footer

Privacy Policy - © 2024 Jeff Minard