Page 1 of 1

Me again.. :S

PostPosted: Sat Jul 29, 06 7:22 pm
by Cozmo
Me again... :? I was just looking around the weaponrifle and i found out that it was the mpNoScopeMult variable that made it x3 damage, i had an idea i could make a weapon that only fires when scoped so i started looking through weapon and deusexweapon, and the variable was not there! :shock:
Somewhere on these forums before i saw someone say it could be done somthing like if(bZoomed) hitdamage *= 3 etc.

The thing that confuses me is where is the variable?

PostPosted: Sat Jul 29, 06 8:10 pm
by MainMan
It isn't the NoScopeMult variable. That is involved in calculating the damage with/without a scope.

The actual function is coded into the superclass (DeusExWeapon), where it checks something like 'if( (Self.IsA('WeaponRifle')) && (Level.NetMode == NM_Standalone'))

PostPosted: Sat Jul 29, 06 9:31 pm
by Cozmo
Oh, i was hoping i could make some sort of super simple code to make it only hit in scope, like ... if(bZoomed) mpGitDamage == 50 ... And make the actual hit damage in the defaultproperties 0, im so confused... :?

PostPosted: Sat Jul 29, 06 9:36 pm
by MainMan
Well the simplest way is just to make the weapon extend WeaponRifle.

E.g.
Code: Select all
Class CozmoWeap extends WeaponRifle