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

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
Eagle Eye
First Lance Corporal
First Lance Corporal
Posts: 129
Joined: Thu Nov 01, 2007 12:44 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Belgium
Contact:

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

Post 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
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

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

Post 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)
User avatar
Eagle Eye
First Lance Corporal
First Lance Corporal
Posts: 129
Joined: Thu Nov 01, 2007 12:44 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Belgium
Contact:

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

Post 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
Caleb1117
2008 Most Original Avatar
Posts: 3096
Joined: Sun Aug 20, 2006 5:55 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set
Location: X-Fire: caleb1117 ಠ_ಠ

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

Post by Caleb1117 »

try this:

Code: Select all

SniperScope         = 1
ZoomFirstPerson     = 1
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

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

Post 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
Caleb1117
2008 Most Original Avatar
Posts: 3096
Joined: Sun Aug 20, 2006 5:55 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set
Location: X-Fire: caleb1117 ಠ_ಠ

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

Post by Caleb1117 »

Its cause I did it in dantooine.
That goes in the sniper rifle ODF BTW.
User avatar
Eagle Eye
First Lance Corporal
First Lance Corporal
Posts: 129
Joined: Thu Nov 01, 2007 12:44 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Belgium
Contact:

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

Post 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
Last edited by Eagle Eye on Wed Dec 12, 2007 1:54 pm, edited 1 time in total.
Caleb1117
2008 Most Original Avatar
Posts: 3096
Joined: Sun Aug 20, 2006 5:55 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set
Location: X-Fire: caleb1117 ಠ_ಠ

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

Post 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
User avatar
Eagle Eye
First Lance Corporal
First Lance Corporal
Posts: 129
Joined: Thu Nov 01, 2007 12:44 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Belgium
Contact:

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

Post 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... :?
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

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

Post by Maveritchell »

Never change anything in the assets folder. Ever.

Never.

Ever.
Caleb1117
2008 Most Original Avatar
Posts: 3096
Joined: Sun Aug 20, 2006 5:55 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set
Location: X-Fire: caleb1117 ಠ_ಠ

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

Post 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.
User avatar
Eagle Eye
First Lance Corporal
First Lance Corporal
Posts: 129
Joined: Thu Nov 01, 2007 12:44 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Belgium
Contact:

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

Post by Eagle Eye »

oh k, so i can only chance things in own created maps right?
User avatar
Eagle Eye
First Lance Corporal
First Lance Corporal
Posts: 129
Joined: Thu Nov 01, 2007 12:44 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Belgium
Contact:

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

Post 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.
User avatar
Eagle Eye
First Lance Corporal
First Lance Corporal
Posts: 129
Joined: Thu Nov 01, 2007 12:44 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Belgium
Contact:

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

Post by Eagle Eye »

Ok thanks everyone, got all what i need :wink:
Caleb1117
2008 Most Original Avatar
Posts: 3096
Joined: Sun Aug 20, 2006 5:55 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set
Location: X-Fire: caleb1117 ಠ_ಠ

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

Post by Caleb1117 »

Isn't overwriting the defualt lvls the point?

Oh yea, and you should read the rules.
User avatar
Eagle Eye
First Lance Corporal
First Lance Corporal
Posts: 129
Joined: Thu Nov 01, 2007 12:44 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Belgium
Contact:

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

Post by Eagle Eye »

ok i will do that
Post Reply