[L4D2] Anyway to prevent bots teleporting to players?
I had to admit it, i really hate survivor bots teleporting to actual players when they are far away, i changed the cvar sb_unstick 1 to 0 but they still teleporting especially i'm in the saferoom. So is there anyway to prevent this from happening or it's part of the game script?
|
Re: [L4D2] Anyway to prevent bots teleporting to players?
Probably can block with memory patching, find signature to code block, NOP/JMP w/e. But maybe the bots get stuck and don't move, unless you find the logic bit which calls the teleport, and block the logic so it seems like they're close enough. Unless someone has another solution.
|
Re: [L4D2] Anyway to prevent bots teleporting to players?
Well, I tried my best to find my solution so far.
Detect and delete point_teleport or info_teleport_destination, didn't work. Looking through DirectorOptions, still no luck finding teleport options. SDKHook on teleport, nothing. All i know is that the bots will not teleport on Survival Gamemode. If i can get it's cvar or some sort like a script, i could able to put in coop gamemode. |
Re: [L4D2] Anyway to prevent bots teleporting to players?
SurvivorBot::EnforceProximityToHumans(void)
'%3.2f: SurvivorBot %s was too far away and was forcibly relocated' if ( !(unsigned __int8)CTerrorGameRules::IsSurvivalMode() ) blah This function. Block it. Simple. |
Re: [L4D2] Anyway to prevent bots teleporting to players?
Quote:
|
Re: [L4D2] Anyway to prevent bots teleporting to players?
I believe there are a couple of convars u can change that will do what u want. You just have to make the bots not get stuck and they won't teleport. Like continuously trying to get to a player while stuck. Mess with the sb_ convars...distance between survivors proximity etc
|
Re: [L4D2] Anyway to prevent bots teleporting to players?
Quote:
sb_enforce_proximity_range? Edited: I bet it's this cvars. |
Re: [L4D2] Anyway to prevent bots teleporting to players?
sm_cvar sb_escort 0
sm_cvar sb_allow_leading 1 sm_cvar sb_neighbor_range 240 sm_cvar sb_follow_stress_factor 70 sm_cvar sb_separation_range 600 sm_cvar sb_separation_danger_min_range 175 sm_cvar sb_separation_danger_max_range 600 sm_cvar sb_battlestation_human_hold_time 0.25 sm_cvar sb_battlestation_give_up_range_from_human 200 sm_cvar sb_max_battlestation_range_from_human 200 sm_cvar sb_enforce_proximity_lookat_timeout 0.0 sm_cvar sb_enforce_proximity_range 10000 sm_cvar sb_reachable_cache_paranoia 0 sm_cvar sb_locomotion_wait_threshold 0 Try messing with some or all of these. Seperation range is what I believe you want I think, or maybe a combination of these. Most of these are all related to distance between players. |
Re: [L4D2] Anyway to prevent bots teleporting to players?
Quote:
Btw, thanks. I can actually set sb_enforce_proximity_range to 99999999999999999... to prevent bots from teleport to me whether they're quite far away. |
Re: [L4D2] Anyway to prevent bots teleporting to players?
Quote:
Edit: I checked this. If you, e.g., set such big value on "z_health" Cvar, it automatically cast to -2147483648 (mean, all bits = 1 in signed int), cause Zombie die at the spawn moment. The same issues is highly likely will break another CVars. |
All times are GMT -4. The time now is 09:39. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.