View previous topic :: View next topic |
Author |
Message |
Junrall

Joined: 21 Sep 2009 Posts: 136 Location: North West Oregon, USA
|
Posted: Sun Apr 18, 2010 12:15 am Post subject: self.weapon = 3? |
|
|
Looking through items.qc and noticed that the grenade launcher, rocket launcher, and lightning gun have self.weapon set to 3.
What gives?
Shouldn't they be set to IT_GRENADE_LAUNCHER, IT_ROCKET_LAUNCHER, IT_LIGHTNING? _________________ Good God! You shot my leg off! |
|
Back to top |
|
 |
Orion

Joined: 12 Jan 2007 Posts: 413 Location: Brazil
|
Posted: Sun Apr 18, 2010 1:54 am Post subject: |
|
|
It doesn't make any difference. It's not used at all.
You can even remove that lines from the weapon_whatever functions that, when you pick up a gun, nothing abnormal will happen.
In weapon_touch(), I think ID would use other.items = other.items | self.weapon instead of new at first. But then, they changed the code.
There are some lines on certain functions that are just excess fat... Just compile the vanilla QC source with FTEQCC and you'll get lots of warnings like "whatever no references". _________________ There's no signature here. Stop looking for one. |
|
Back to top |
|
 |
|