CS2-plugins-lua icon indicating copy to clipboard operation
CS2-plugins-lua copied to clipboard

PlantSideBlocker fix for bots

Open andreiseverin opened this issue 1 year ago • 5 comments

Hi,

Can you add a feature for this plugin not to count bots but only real players?

andreiseverin avatar Nov 23 '23 16:11 andreiseverin

https://github.com/Quake1011/CS2-plugins-lua/blob/d2f0f496686aa6dbfa31da4e83b5ef76748a30f2/PlantSideLocker/vscripts/PlantSideLocker.lua#L68-L76

Replace this

		if v:GetTeam() == team then

to this

		if v:GetTeam() == team and v:IsNPC() == false then

Quake1011 avatar Nov 23 '23 23:11 Quake1011

@Quake1011 I tried it and it still doesn't work

andreiseverin avatar Nov 24 '23 08:11 andreiseverin

@Quake1011 I tried it and it still doesn't work

Hm. Weird... Thats should working

Quake1011 avatar Nov 24 '23 09:11 Quake1011

@Quake1011 Maybe they are not seen as NPC. Isn't it a function to check its steamid? It should be 0 for bots

andreiseverin avatar Nov 24 '23 17:11 andreiseverin

@Quake1011 Maybe they are not seen as NPC. Isn't it a function to check its steamid? It should be 0 for bots

U can't check this for steam Id. For it need create array of players in which one will store player data then. Weird that's didn't work currently function :/

Quake1011 avatar Nov 26 '23 08:11 Quake1011