MantisBT - Soldat
View Issue Details
0000618SoldatOtherpublic2015-06-28 14:392015-07-13 01:10
homerofgods 
ExHunter 
normalminorhave not tried
closedno change required 
 
 
0000618: Weapon IDs of WTYPE_M2 and other new weaponsreverts to WTYPE_NOWEAPON
I quore deguix:

TActivePlayer.OnWeaponChange TPlayerWeapon parameters WType's can't have the weapon ids of WTYPE_M2 and other new weapons, it just reverts to WTYPE_NOWEAPON. TActivePlayer.Primary.WType always shows the correct weapon (and the secondary too).
http://forums.soldat.pl/index.php?topic=43954.msg524107#msg524107 [^]
No tags attached.
related to 0000617closed ExHunter Access violations when aiming WTYPE_M2 and WTYPE_THROWNKNIFE to the right 
related to 0000619confirmed  OnWeaponChange called twice 
related to 0000620new  Server forces player WTYPE_NOWEAPON 
Issue History
2015-06-28 14:39homerofgodsNew Issue
2015-06-28 14:40homerofgodsRelationship addedrelated to 0000617
2015-06-28 14:59homerofgodsRelationship addedrelated to 0000619
2015-06-28 15:01homerofgodsRelationship addedrelated to 0000620
2015-06-28 15:02homerofgodsReproducibilityN/A => have not tried
2015-07-13 01:10ExHunterNote Added: 0002478
2015-07-13 01:10ExHunterStatusnew => closed
2015-07-13 01:10ExHunterAssigned To => ExHunter
2015-07-13 01:10ExHunterResolutionopen => no change required

Notes
(0002478)
ExHunter   
2015-07-13 01:10   
Those weapon types are not intended for being used as a weapon itself.

They are used as an identifier for scripted bullets support (for instance: if somebody shoots with a stationary gun, the bullet mid air has the type WTYPE_M2.)

I didn't know that you could actually force player weapons to these weapons. Actually that it is a bug (a stationary gun was never be intended to be held by a player and a thrown knife is only a bullet type too).

Will look into that.