PDA

View Full Version : Weapon Changes


D_Lusted
12-16-2005, 10:02 AM
I'm new to coding, so bare with me....
I have learnt how to adjust kits and the weapons themselves.

At the moment, I have tweaked the Sniper Kit:
1: Knife
2: Pistol
3: M82A1
4: M67
5: Claymores

The kit is fully working after trial and error, and I am able to use the M82 in game. Only problem is that the Sniper Scope on the M82 is a bit small and crap.
Is there any way I can import the M95 Scope Sights with the M82 to resolve this problem???

Also, how do I add a 3 staged zoom on this weapon? ie 2x, 4x and 8x magnification.

rem ---BeginComp:DefaultZoomComp ---
ObjectTemplate.createComponent DefaultZoomComp
ObjectTemplate.zoom.zoomDelay 0.1
ObjectTemplate.zoom.zoomLod 1
ObjectTemplate.zoom.addZoomFactor 0
ObjectTemplate.zoom.addZoomFactor 0.3
ObjectTemplate.zoom.addZoomFactor 0.025
ObjectTemplate.zoom.changeFovDelay 0.1
ObjectTemplate.zoom.zoomOutAfterFire 0
rem ---EndComp ---

Is what I have done correct? As only a standard zoom and a powerful zoom is accessible ingame.

Thanks for your help.

D_Lusted

Frosty289
12-16-2005, 10:23 PM
I did it in BF:E a long time ago, I havn't worked on it since but it's slightly bugged, unless you were to remove the 'unscope after each shot' function then it would just go to the next zoom level after you fire, that is if you arn't on the 3rd. But here it is

rem ---BeginComp:DefaultZoomComp ---
ObjectTemplate.createComponent DefaultZoomComp
ObjectTemplate.zoom.zoomDelay 0.115
ObjectTemplate.zoom.zoomLod 1
ObjectTemplate.zoom.addZoomFactor 0
ObjectTemplate.zoom.addZoomFactor 0.53
ObjectTemplate.zoom.addZoomFactor 0.275
ObjectTemplate.zoom.addZoomFactor 0.11
ObjectTemplate.zoom.changeFovDelay 0.08
ObjectTemplate.zoom.zoomOutAfterFire 1
ObjectTemplate.zoom.disableMuzzleWhenZoomed 0
rem ---EndComp ---

D_Lusted
12-17-2005, 06:57 AM
Thanks Frosty, I'll give it a shot.

Anyone know how to change the scope pictures now?

imported_CheetahShrk
12-18-2005, 03:28 AM
Thanks Frosty, I'll give it a shot.

Anyone know how to change the scope pictures now?

Not possible, the scope picture is actually a 3d object that is part of the weapons model.