Page 1 of 1

how to give my sniper a sight for 3rd person view point?

Posted: Wed Dec 12, 2007 10:35 am
by Eagle Eye
I want to give the sniper in all instant action/online maps (so not my own created map) a sight when you are in 3rd person view point like the other troopers. Where and how to chance the script?

Thanks

Re: how to give my sniper a sight for 3rd person view point?

Posted: Wed Dec 12, 2007 11:45 am
by DarthD.U.C.K.
you have to munge the whole im edited imp side and copy its lvl into the gamedata/data/lvl_pc/sides folder (replace the old lvl, but make a copy before)

Re: how to give my sniper a sight for 3rd person view point?

Posted: Wed Dec 12, 2007 1:08 pm
by Eagle Eye
Yes, you mean thats after u edited the sniper script of the imp side? My question is how to edit the script of a sniper to give the sniper a sight. (sight = vizier in dutch, not sure i say it good) The same sight like u zoom in

Re: how to give my sniper a sight for 3rd person view point?

Posted: Wed Dec 12, 2007 1:29 pm
by Caleb1117
try this:

Code: Select all

SniperScope         = 1
ZoomFirstPerson     = 1

Re: how to give my sniper a sight for 3rd person view point?

Posted: Wed Dec 12, 2007 1:33 pm
by DarthD.U.C.K.
ok, i got it now
i think it could, be edited by changing the unittype
but i dont know
EDIT: Diet Dr. Pepper, caleb was faster and found the right way

Re: how to give my sniper a sight for 3rd person view point?

Posted: Wed Dec 12, 2007 1:38 pm
by Caleb1117
Its cause I did it in dantooine.
That goes in the sniper rifle ODF BTW.

Re: how to give my sniper a sight for 3rd person view point?

Posted: Wed Dec 12, 2007 1:48 pm
by Eagle Eye
This is my com_weap_inf_sniper_rifle.odf: (without edit)

Hidden/Spoiler:
[WeaponClass]
ClassLabel = "cannon"

[Properties]
ScoreForMedalsType = 4
MedalsTypeToLock = 4

AnimationBank = "rifle"

//***********************************************
//************* TARGET & RANGE VALUES **********
//***********************************************

TargetEnemy = "1"
TargetNeutral = "0"
TargetFriendly = "0"

TargetPerson = "1"
TargetAnimal = "1"
TargetDroid = "1"
TargetVehicle = "0"
TargetBuilding = "0"

MinRange = "8"
OptimalRange = "64"
MaxRange = "128"
AIUseBubbleCircle = "1"
AIBubbleSizeMultiplier = "0.6"

LockOnRange = "0.0"
LockTime = "0.0"
LockOnAngle = "1.0"

ReticuleInAimingOnly = 1
SniperScope = 1
ZoomFirstPerson = 1

ZoomMin = "2.0"
ZoomMax = "8.0"
ZoomRate = "0.0"

YawSpread = "0.0"
PitchSpread = "0.0"

KickStrength = "0.0" // "2.0"

SpreadPerShot = "1.1"
SpreadRecoverRate = "4.8"
SpreadThreshold = "1.6"
SpreadLimit = "6.0"

StandStillSpread = "0.0"
StandMoveSpread = "0.0"
CrouchStillSpread = "0.0"
CrouchMoveSpread = "0.0"
ProneStillSpread = "0.0"
ProneMoveSpread = "0.0"

//***********************************************
//*********** WEAPON PERFORMANCE VALUES *********
//***********************************************

RoundsPerClip = "8" // 5
ReloadTime = "2.0"
ShotDelay = "0.8" //1.0
TriggerSingle = "1"
MaxPressedTime = "0.0"

SalvoCount = "1"
SalvoDelay = "0.0"
InitialSalvoDelay = "0.0"
SalvoTime = "0.0"

//***********************************************
//*********** HUD & CONTROLLER VALUES *********
//***********************************************

ScopeTexture = "weapon_scope3"

MuzzleFlash = "small_muzzle_flash"
FlashColor = "255 80 80 255"
FlashLength = 0.025
FlashLightColor = "255 192 192 175"
FlashLightRadius = "2.0"
FlashLightDuration = "0.25"
Discharge = "small_smoke_effect"
These lines where already in place as follows:

Code: Select all

SniperScope         = 1
ZoomFirstPerson     = 1
So i mean: i want a sight for the normal view of the sniper, only the zoom now has a sight.
If you dont know what i mean with "sight" just tell me :) i know my english is bad

Re: how to give my sniper a sight for 3rd person view point?

Posted: Wed Dec 12, 2007 1:53 pm
by Caleb1117
Eagle Eye wrote:This is my com_weap_inf_sniper_rifle.odf: (without edit)

Hidden/Spoiler:
[WeaponClass]
ClassLabel = "cannon"

[Properties]
ScoreForMedalsType = 4
MedalsTypeToLock = 4

AnimationBank = "rifle"

//***********************************************
//************* TARGET & RANGE VALUES **********
//***********************************************

TargetEnemy = "1"
TargetNeutral = "0"
TargetFriendly = "0"

TargetPerson = "1"
TargetAnimal = "1"
TargetDroid = "1"
TargetVehicle = "0"
TargetBuilding = "0"

MinRange = "8"
OptimalRange = "64"
MaxRange = "128"
AIUseBubbleCircle = "1"
AIBubbleSizeMultiplier = "0.6"

LockOnRange = "0.0"
LockTime = "0.0"
LockOnAngle = "1.0"

ReticuleInAimingOnly = 1
SniperScope = 1
ZoomFirstPerson = 1

ZoomMin = "2.0"
ZoomMax = "8.0"
ZoomRate = "0.0"

YawSpread = "0.0"
PitchSpread = "0.0"

KickStrength = "0.0" // "2.0"

SpreadPerShot = "1.1"
SpreadRecoverRate = "4.8"
SpreadThreshold = "1.6"
SpreadLimit = "6.0"

StandStillSpread = "0.0"
StandMoveSpread = "0.0"
CrouchStillSpread = "0.0"
CrouchMoveSpread = "0.0"
ProneStillSpread = "0.0"
ProneMoveSpread = "0.0"

//***********************************************
//*********** WEAPON PERFORMANCE VALUES *********
//***********************************************

RoundsPerClip = "8" // 5
ReloadTime = "2.0"
ShotDelay = "0.8" //1.0
TriggerSingle = "1"
MaxPressedTime = "0.0"

SalvoCount = "1"
SalvoDelay = "0.0"
InitialSalvoDelay = "0.0"
SalvoTime = "0.0"

//***********************************************
//*********** HUD & CONTROLLER VALUES *********
//***********************************************

ScopeTexture = "weapon_scope3"

MuzzleFlash = "small_muzzle_flash"
FlashColor = "255 80 80 255"
FlashLength = 0.025
FlashLightColor = "255 192 192 175"
FlashLightRadius = "2.0"
FlashLightDuration = "0.25"
Discharge = "small_smoke_effect"
These lines where already in place as follows:

Code: Select all

SniperScope         = 1
ZoomFirstPerson     = 1

Oh yea, you have to remove the line:

Code: Select all

ReticuleInAimingOnly = 1

Re: how to give my sniper a sight for 3rd person view point?

Posted: Wed Dec 12, 2007 1:58 pm
by Eagle Eye
ok one thing more, how to munge the com_weap_inf_sniper_rifle.odf file under BF2_ModTools\assets\sides\Common?

This is under assets and not under a created map so its a special situation for me to munge... :?

Re: how to give my sniper a sight for 3rd person view point?

Posted: Wed Dec 12, 2007 3:15 pm
by Maveritchell
Never change anything in the assets folder. Ever.

Never.

Ever.

Re: how to give my sniper a sight for 3rd person view point?

Posted: Wed Dec 12, 2007 5:15 pm
by Caleb1117
Exactly.
Copy the asset sides to your map project before you edit anything.

So you copy the side you want to edit to:

data_ABC/sides.

Then you make the changes there, then you munge the side.

Re: how to give my sniper a sight for 3rd person view point?

Posted: Wed Dec 12, 2007 5:19 pm
by Eagle Eye
oh k, so i can only chance things in own created maps right?

Re: how to give my sniper a sight for 3rd person view point?

Posted: Wed Dec 12, 2007 5:21 pm
by Eagle Eye
yes but you need to chance the name, otherwise it will overwrite in the GameData\data\_lvl_pc\side
EDIT: or make a backup
Caleb1117 wrote:Exactly.
Copy the asset sides to your map project before you edit anything.

So you copy the side you want to edit to:

data_ABC/sides.

Then you make the changes there, then you munge the side.

Re: how to give my sniper a sight for 3rd person view point?

Posted: Wed Dec 12, 2007 5:24 pm
by Eagle Eye
Ok thanks everyone, got all what i need :wink:

Re: how to give my sniper a sight for 3rd person view point?

Posted: Wed Dec 12, 2007 5:26 pm
by Caleb1117
Isn't overwriting the defualt lvls the point?

Oh yea, and you should read the rules.

Re: how to give my sniper a sight for 3rd person view point?

Posted: Wed Dec 12, 2007 5:28 pm
by Eagle Eye
ok i will do that