How to make bots using flashlights?
Does anyone know how to force the bot to use the flashlight?
That client_cmd(id, "impulse 100") doesn't work at all at bots. I was trying in bot dll code to use: FakeClientCommand (pEdict, "impulse 100"); but that doesn't affect the bots (even making the bots spriting needs to use extra code instead just some impulse value). I was trying to use also EF_DIMLIGHT (pEdict->v.effects |= EF_DIMLIGHT), but that one makes the whole bot as a bright light in the dark room, instead making only a small light focused at the point the bot is looking at. I even did this: Code:
MESSAGE_BEGIN (MSG_ONE, gmsgFlashlight, NULL, pEdict); Any idea? |
Re: How to make bots using flashlights?
Try messing around with the usercmd_s
Hook CmdStart function then try doing this: cmd->impulse = 100; |
Re: How to make bots using flashlights?
engclient_cmd("impulse", "100"); shold work.
|
Re: How to make bots using flashlights?
Quote:
|
Re: How to make bots using flashlights?
We've tried and tested, hence why KWo is asking for suggestions.
|
All times are GMT -4. The time now is 07:28. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.