Raised This Month: $18 Target: $400
 4% 

[REQ/L4D2] Survivor Shoving (Fun)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
LividBunny
Member
Join Date: Mar 2021
Old 10-02-2022 , 08:37   [REQ/L4D2] Survivor Shoving (Fun)
Reply With Quote #1

So Silvers has made the [L4D & L4D2] Survivor Shove (1.15) [04-Aug-2022] so I asked if he could maybe add:
Survivor shoving = When Survivor gets Charged but not Grabbed by Charger = Flung (z_charge_max_force)
OR
Survivor Shoving = When Tank Hits Survivor = Survivor gets Thrown (z_tank_throw_force)

This was in PM's btw.
He responded "Not something I will do."

So I thought I'd ask for a request here.
The effect I want is what happens when you shove a survivor in l4d1 with these commands:
survivor_shove_teammates 1
z_gun_survivor_force 9999
(These 2 commands don't work in l4d2)
is that they would go flying as shown in Chris!! aka Christoffer395 video https://youtu.be/6iLZmoxgGvo?t=113 Timestamp: 1:53 - 2:06
LividBunny is online now
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Old 10-02-2022 , 19:58   Re: [REQ/L4D2] Survivor Shoving (Fun)
Reply With Quote #2

ConVars
  • sv_player_shove_force_min_scale <-- Shove impulse scale min
  • sv_player_shove_force_max_scale <-- Shove impulse scale max
  • sv_player_shove_velocity_min <-- Min Z velocity
  • sv_player_shove_velocity_max <-- Max Z velocity
  • sv_player_shove_angle_threshold <-- Max angle threshold

Require Left 4 DHooks
Attached Files
File Type: txt l4d2_shove_force.txt (316 Bytes, 10 views)
File Type: sp Get Plugin or Get Source (l4d2_shove_force.sp - 12 views - 3.5 KB)
__________________
cry
BHaType is offline
Send a message via AIM to BHaType
LividBunny
Member
Join Date: Mar 2021
Old 10-03-2022 , 11:46   Re: [REQ/L4D2] Survivor Shoving (Fun)
Reply With Quote #3

Quote:
Originally Posted by BHaType View Post
ConVars
  • sv_player_shove_force_min_scale <-- Shove impulse scale min
  • sv_player_shove_force_max_scale <-- Shove impulse scale max
  • sv_player_shove_velocity_min <-- Min Z velocity
  • sv_player_shove_velocity_max <-- Max Z velocity
  • sv_player_shove_angle_threshold <-- Max angle threshold

Require Left 4 DHooks
It works amazingly, just like what a tank punch feels like. Thanks.
If it isn't too much work tho. Would it be possible to separate/remove the survivor getting knocked down and have them be standing up right, able to still shoot and stuff?
Cheers.
LividBunny is online now
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Old 10-03-2022 , 19:45   Re: [REQ/L4D2] Survivor Shoving (Fun)
Reply With Quote #4

Quote:
Originally Posted by LividBunny View Post
It works amazingly, just like what a tank punch feels like. Thanks.
If it isn't too much work tho. Would it be possible to separate/remove the survivor getting knocked down and have them be standing up right, able to still shoot and stuff?
Cheers.
if you want to remove animation and be able to shoot then delete this line and recompile again
PHP Code:
L4D2Direct_DoAnimationEvent(target96 /* ANIM_TANK_PUNCH_GETUP */); 
if you want to keep animation and be able to shoot then no, this will require to play with animation hooks or memory patches which isn't something i'm going to do
__________________
cry

Last edited by BHaType; 10-03-2022 at 19:45.
BHaType is offline
Send a message via AIM to BHaType
LividBunny
Member
Join Date: Mar 2021
Old 10-04-2022 , 10:56   Re: [REQ/L4D2] Survivor Shoving (Fun)
Reply With Quote #5

Quote:
Originally Posted by BHaType View Post
if you want to remove animation and be able to shoot then delete this line and recompile again
PHP Code:
L4D2Direct_DoAnimationEvent(target96 /* ANIM_TANK_PUNCH_GETUP */); 
if you want to keep animation and be able to shoot then no, this will require to play with animation hooks or memory patches which isn't something i'm going to do
That works. Thank you very much.
LividBunny is online now
Reply


Thread Tools
Display Modes

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 17:23.


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