Raised This Month: $51 Target: $400
 12% 

[CSGO] Disable MapDecals for flag


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
trzmielu
Member
Join Date: Aug 2016
Old 12-08-2022 , 12:07   [CSGO] Disable MapDecals for flag
Reply With Quote #1

Hi!
Is there any edit of MapDecals plugin to allow players with specific flag to disable decals on the map?
Thanks!
trzmielu is offline
trzmielu
Member
Join Date: Aug 2016
Old 12-08-2022 , 12:08   Re: [CSGO] Disable MapDecals for flag
Reply With Quote #2

Tried to look for it by myself, but couldn't find anything around
trzmielu is offline
trzmielu
Member
Join Date: Aug 2016
Old 12-20-2022 , 12:59   Re: [CSGO] Disable MapDecals for flag
Reply With Quote #3

If i implement IF function, that will spawn the decals only if the player doesnt have reserved slot flag into this function:
Code:
TE_SetupBSPDecal(const Float:vecOrigin[3], entity, index) {
	
	TE_Start("BSP Decal");
	TE_WriteVector("m_vecOrigin",vecOrigin);
	TE_WriteNum("m_nEntity",entity);
	TE_WriteNum("m_nIndex",index);
}
Will it work? If not, can you guide me how to do this?
trzmielu is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 12-20-2022 , 13:11   Re: [CSGO] Disable MapDecals for flag
Reply With Quote #4

The best place to start would be to hook "BSP Decal" with AddTempEntHook and see how that works out. I'm not 100% sure you can just toggle the active decals on/off though with like a command live after they're made but you might be able to just edit the Players integer array and numClients in the callback maybe?
Drixevel is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:59.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode