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

[L4D & L4D2] Dynamic Common Infected Jump


Post New Thread Reply   
 
Thread Tools Display Modes
replay_84
Senior Member
Join Date: Jun 2021
Old 10-07-2023 , 12:39   Re: [L4D & L4D2] Dynamic Common Infected Jump
Reply With Quote #21

Quote:
Originally Posted by BHaType View Post
"z_dynamic_jump_velocity" highly relies on "z_dynamic_jump_climb_up_range".
Basicly if you changing one of them then most of the time you want to change the other.

See this test video


The actual reason common infected isn't jumping despite the fact that it seems to you he has a great opportunity to jump is because before the jump, there is computation of a trajectory (with a velocity from convar) to see if he can actually can reach destination without problems and if he can't then he won't even try to jump.
I can remove this check but I guess they will start jumping clumsily or rather senselessly.
thanks man. The video says more than words. Guess I will figure it out.
replay_84 is offline
replay_84
Senior Member
Join Date: Jun 2021
Old 10-07-2023 , 17:11   Re: [L4D & L4D2] Dynamic Common Infected Jump
Reply With Quote #22

Quote:
Originally Posted by finishlast View Post
I set it to:

sm_cvar z_dynamic_jump_climb_up_range 400
sm_cvar z_dynamic_jump_climb_up_range 200
sm_cvar z_dynamic_jump_velocity 600
sm_cvar z_dynamic_jump_chance 100

This is just hilarios when you stand on something like a box and then a panic event occurs. so much fun.

Btw. an AI Tank with the ability to jump that high would make anyone wet their pants ... if that comes unexpected.

When you think you are save up there. Surprise haHA! BAM!

why you have 2 times "z_dynamic_jump_climb_up_range" ?
replay_84 is offline
finishlast
Senior Member
Join Date: Nov 2018
Location: In Reno with the vitamin
Old 10-08-2023 , 04:15   Re: [L4D & L4D2] Dynamic Common Infected Jump
Reply With Quote #23

Must be out of excitement while I was testing different values. I had a blast testing different values.
First one was commented out in cfg but I didn't copy the #, I changed my post
__________________
finishlast is offline
Jasonex
Junior Member
Join Date: Aug 2023
Old 10-10-2023 , 07:31   Re: [L4D & L4D2] Dynamic Common Infected Jump
Reply With Quote #24

The plugin works for me, but the Cvar is not here.
Jasonex is offline
finishlast
Senior Member
Join Date: Nov 2018
Location: In Reno with the vitamin
Old 10-10-2023 , 13:49   Re: [L4D & L4D2] Dynamic Common Infected Jump
Reply With Quote #25

Quote:
Originally Posted by Jasonex View Post
The plugin works for me, but the Cvar is not here.
Code:
public void OnPluginStart()
{
	SetupSDKCalls();
	
	z_dynamic_jump_debug = CreateConVar("z_dynamic_jump_debug", "0");
	z_dynamic_jump_think_interval = CreateConVar("z_dynamic_jump_think_interval", "0.2");
	z_dynamic_jump_check_interval = CreateConVar("z_dynamic_jump_check_interval", "0.3");
	z_dynamic_jump_climb_up_range = CreateConVar("z_dynamic_jump_climb_up_range", "350.0");
	z_dynamic_jump_velocity = CreateConVar("z_dynamic_jump_velocity", "750.0");
	z_dynamic_jump_chance = CreateConVar("z_dynamic_jump_chance", "20.0");
	z_dynamic_jump_chance_throttle = CreateConVar("z_dynamic_jump_chance_throttle", "1.0");
	
	nb_gravity = FindConVar("nb_gravity");
}
Thats the default, you can put them in the server.cfg, this plugin does not create it's own cfg file.

Code:
sm_cvar z_dynamic_jump_climb_up_range 200
sm_cvar z_dynamic_jump_velocity 600
sm_cvar z_dynamic_jump_chance 100
like this
__________________

Last edited by finishlast; 10-10-2023 at 13:49.
finishlast is offline
Anarki1980
New Member
Join Date: Jan 2020
Old 12-20-2023 , 10:19   Re: [L4D & L4D2] Dynamic Common Infected Jump
Reply With Quote #26

Thank you very much, very good idea and implementation, looks very natural. Its a pity that witch does goofy jumps, as it could make encounters much more difficult and scary.
Anarki1980 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 23:26.


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