#1
mob/verb/fire()//standard verb
switch(usr.weapon)
if("Dual UMP45")
usr.Fire_Weapon()
if("Dual Uzi")
usr.Fire_Weapon()
if("Dual MP5")
usr.Fire_Weapon()
#2
mob/verb/fire()//standard verb
if(usr.weapon=="Dual UMP45"||usr.weapon=="Dual Uzi"||usr.weapon=="Dual MP5")
usr.Fire_Weapon()//Run a fire proc
Would using #1 be more efficient than using #2?
Really though, you should make the variable weapon refer to the gun item itself (if it's in the user's content)
if(usr.weapon.name ...
- GhostAnime