Quote:
Originally Posted by Neuro Toxin
I figure if you avoid EquipPlayerItem and store the weapon index manually you would get your result.
|
I have tried to simply "inject" the spawned weapon into m_hMyWeapons, which worked, but the offset in the data table does not matter. You can place an ak anywhere in the table and it will land in the ak slot, same goes for any other weapon type.
Quote:
Originally Posted by Mitchell
The closest thing I could think of would to strip the primary and replace it everytime the player switches to the secondary weapon. The weapon slots are hard-coded into the client's files also.
|
Thats what i wanted to do at first, unfortunately like i said pressing 1-9 does not get transmitted to the server when you dont have a weapon in the corresponding slot. I guess i will have to find some workaround / do stuff differently than i planned it.