kgns / weapons

CS:GO Custom Weapon Options (Skins, NameTag, StatTrak, Wear/Float, Knives)
GNU General Public License v3.0
335 stars 121 forks source link

Multiple knives on some aim/awp maps #150

Closed Wyll3R closed 4 years ago

Wyll3R commented 4 years ago

123

I know that mp_equipment_reset_rounds 1 can fix that, but it also gives another problem that you cant save any weapon for the next round.

It appears every round, if you survive. On maps, where guns drop every round. (awp_lego_2, Aim_ak47_lego, Aim_Redline)

BlackYuzia commented 4 years ago

The same.

Wyll3R commented 4 years ago

It appears on maps, where is used "game_player_equip", I suppose.

kgns commented 4 years ago

try using https://forums.alliedmods.net/showthread.php?t=279263 and see if it makes any difference

Wyll3R commented 4 years ago

acts the same as mp_equipment_reset_rounds 1, can not save any weapon, because every round i am getting a new one.

kgns commented 4 years ago

when you "save" weapons from previous round on these maps, do you still receive new weapons on round start (and do they fell on the ground because you already have the same type of weapon)?

BlackYuzia commented 4 years ago

when you "save" weapons from previous round on these maps, do you still receive new weapons on round start (and do they fell on the ground because you already have the same type of weapon)?

Yep, in some maps (for example, awp_lego_2) weapons will drop to floor. (like a knife)

kgns commented 4 years ago

so you want the new knives to get dropped on the ground instead of having multiple knives equipped, is that correct?

Wyll3R commented 4 years ago

Yeah, it would be better than multiple knives equipped.

crashzk commented 4 years ago

My question would be, because it only happens on servers in casual modes, currently I have a competitive server, I use the weapons plugin and I don't have this error / bug.

However on my casual servers, such as AWP, JAILBREAK and SURF this BUG happens. As CVAR said mp_equipment_reset_rounds "1", solves the problem, but always resets the player in the new round if he is alive, so he loses all his weapons in the new round.

xSL0W commented 4 years ago

same problem here, on an AWP only server. I think it matters what plugins do you use to give players weapons / remove them.

crashzk commented 4 years ago

same problem here, on an AWP only server. I think it matters what plugins do you use to give players weapons / remove them.

I believe it is not linked to other plugins but to the map itself, mainly Surf & AWP maps.

I created an AWP server, even plugins, all the same, except the maps, I left the standard CSGO maps; No BUGS of duplicating knives on the server.

turkcodec commented 4 years ago

Is there any solution for that?

kgns commented 4 years ago

the problem here is with maps that use game_player_equip to give players weapons on round start/player spawn. by default csgo will give every player a knife, so maps should not be trying to give players knives on spawn. you can remove the entity that gives players knives from the map and recompile it and use it