YSI-Includes icon indicating copy to clipboard operation
YSI-Includes copied to clipboard

3 new functions added to `y_weapondata`

Open DEntis-T opened this issue 2 years ago • 2 comments

Reopen the request #609.

DEntis-T avatar Sep 28 '22 13:09 DEntis-T

@Y-Less

DEntis-T avatar Sep 28 '22 13:09 DEntis-T

I've asked you about five times why "types" are different to "slots". They map 1-to-1, so there's absolutely no need for two things giving the same information. Why do they exist? What do they add? Where does the idea come from? Why does just using slots not work?

They don't map 1-to-1; look:

stock WeaponType:Weapon_GetType(weaponid)
{ 
	return WeaponType:(Weapon_GetSlot(weaponid) - 1);
}

There's not a slot 0.

DEntis-T avatar Oct 04 '22 07:10 DEntis-T