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

CSGO trying to set bot model


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
panparapet
Junior Member
Join Date: Jul 2022
Old 04-14-2023 , 18:01   CSGO trying to set bot model
Reply With Quote #1

Hi currently i am facing an issue with changing bot models and i have run out of ideas how to do it. I am including my latest try that is not crashing server here. Thanks for help
Attached Files
File Type: sp Get Plugin or Get Source (skiny_botow.sp - 58 views - 931 Bytes)
panparapet is offline
kadet.89
Veteran Member
Join Date: Nov 2012
Location: Serbia
Old 04-16-2023 , 15:05   Re: CSGO trying to set bot model
Reply With Quote #2

Probably is is too early to set player model in Spawn prehook. You could try EventHookMode_Post and if it doesn't work - add a timer for 1 game frame and change the model in the timer callback. I had to do it this way in CS:S
In CS:GO I hook SetEntityModel function and replace the model path
kadet.89 is offline
Send a message via Skype™ to kadet.89
panparapet
Junior Member
Join Date: Jul 2022
Old 04-18-2023 , 09:28   Re: CSGO trying to set bot model
Reply With Quote #3

Hi thank you for replying. Your idea of changing EventHookMode_Pre to EventHookMode_Post and adding timer worked and now bots are getting custom models.
Attached Files
File Type: sp Get Plugin or Get Source (skiny_botow.sp - 53 views - 1.5 KB)
panparapet 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 02:59.


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