Me again.. :S

The best and quickest support by a group of top-notch editing specialists, guaranteed!

Moderator: Forum Guards

Me again.. :S

Postby Cozmo » Sat Jul 29, 06 7:22 pm

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?
Cozmo_RPG (v1 & v2)
MPConversations - A tool for creating multiplayer RPG stuff
Cozmo
Master
 
Posts: 1266
Joined: Tue Jun 28, 05 10:53 am
Location: UK

Postby MainMan » Sat Jul 29, 06 8:10 pm

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'))
<center>ty m7
</center>
User avatar
MainMan
<i>Tru' Playa' Fer Defs</i>
 
Posts: 4655
Joined: Sun Jun 05, 05 7:38 am
Location: London, UK

Postby Cozmo » Sat Jul 29, 06 9:31 pm

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... :?
Cozmo_RPG (v1 & v2)
MPConversations - A tool for creating multiplayer RPG stuff
Cozmo
Master
 
Posts: 1266
Joined: Tue Jun 28, 05 10:53 am
Location: UK

Postby MainMan » Sat Jul 29, 06 9:36 pm

Well the simplest way is just to make the weapon extend WeaponRifle.

E.g.
Code: Select all
Class CozmoWeap extends WeaponRifle
<center>ty m7
</center>
User avatar
MainMan
<i>Tru' Playa' Fer Defs</i>
 
Posts: 4655
Joined: Sun Jun 05, 05 7:38 am
Location: London, UK


Return to Editing issues

Who is online

Users browsing this forum: No registered users and 4 guests