CS-GEJMERZY / VIP-Plugin

VIP plugin designed to work with CSS framework on cs2 servers.
GNU General Public License v3.0
13 stars 3 forks source link

[BUG] Money stocking #33

Closed langw0ww closed 4 months ago

langw0ww commented 5 months ago

Money are not stacking correctly. After round ends at the next round start you have to buy and sell a gun to take all money.

Also I think i'm getting segmentation fault sometimes.

langw0ww commented 5 months ago

Also, if i have 110HP and use medkit, it set 100HP . Maybe it would be good to cannot use medkit if u don't have under 100HP. Also this plugin have segmentation fault, I disabled plugin 1 by 1 and this plugin is problem.

HackerDevs commented 5 months ago

I'll take a closer look at the money issue. My suspicion is that it might be caused by calling the PlayerSpawnn_TimerGive function with a 1-second delay.

The healthshot_allow_use_at_full cvars address this situation by blocking healthshot usage. I'll look further into it and keep you updated.

Regarding the crash:

langw0ww commented 5 months ago

It occurs sometimes when 2 vips are bunnyhoping, at changing map and sometimes for nothig, just crash. I get only "Segmentation fault (core dumped)" Yes, fast plant/defuse is enabled, also: bunnyhop, extrajump, colored smoke; Using ubuntu 22.04 and last verios of metamod, css and plugin version.

langw0ww commented 5 months ago

https://i.imgur.com/nOzcMut.png this i got today in game console and segmentation fault (core dump) in server console

Later edit: i updated plugin and css and it works fine for moment LATER EDIT2: Still crashing, segmentation fault but it works for few hours

HackerDevs commented 5 months ago

https://i.imgur.com/nOzcMut.png this i got today in game console and segmentation fault (core dump) in server console

That just says your client is trying to connect to the server.

Please check if this version solves the problem https://github.com/CS-GEJMERZY/VIP-Plugin/actions/runs/8854442449/artifacts/1452338191

langw0ww commented 5 months ago

Works for now. Another thing that i didnt understand. How to add vip groups if to be vip you need to have "@vip-plugin/vip". Like "vip1" has bhop, double jump and smoke colored, "vip2" has only bhop and double jump, and "vip3" has only smoke colored. Can you give me an example of script config for 3 vip groups?

HackerDevs commented 4 months ago

I realized that I may have been calling SetStateChanged on the wrong class. Additionally, I redesigned the player spawn event to eliminate delays by removing timers and instantly assigning perks to players upon spawning.

Please try the latest build artifact in refactor/spawn-event branch. https://github.com/CS-GEJMERZY/VIP-Plugin/actions/runs/9046356305/artifacts/1493980845