destoer / Cs2Jailbreak

WIP Jailbreak plugin for CS2
GNU General Public License v3.0
32 stars 13 forks source link

LRType.WAR doesn't like MP5 #49

Closed Jettucis closed 3 months ago

Jettucis commented 3 months ago

For some weird reason Last Request War when selecting MP5 weapon, auto-drops the weapon + strips both players knives (okay that is probably fine since in InitPlayerCommon it strips players from weapons. Any other weapon works just fine, but "MP5" for some weird reason will drop no matter what (just in LRType.WAR, SD works fine).

I am not 100% sure, since I haven't done debugging on that yet, but I think that the cause might be in LastRequestHook.cs WeaponEquip void <--- I will do some debugging in the coming days and will update this Issue if I've found something.

For now am forced to comment out lrMenu.AddMenuOption("MP5", PickedOption);

destoer commented 3 months ago

Weird... Thanks for letting me know

Jettucis commented 3 months ago

Don't ask me how or why because I am unable to answer it as well, but when LRType.WAR is initiated and started with MP5, the plugin thinks it's MP7 which is why the weapon is dropped.

I checked it in public virtual bool WeaponEquip(String name) and when MP5 was picked up the name returned weapon_mp7

destoer commented 3 months ago

Ah thanks i think thered a weird flag you can check for it

destoer commented 3 months ago

Swapped mp5 for ak47 for now thanks for the issue