AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   [REQ/L4D2] Survivor Shoving (Fun) (https://forums.alliedmods.net/showthread.php?t=339800)

LividBunny 10-02-2022 07:37

[REQ/L4D2] Survivor Shoving (Fun)
 
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

BHaType 10-02-2022 18:58

Re: [REQ/L4D2] Survivor Shoving (Fun)
 
2 Attachment(s)
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

LividBunny 10-03-2022 10:46

Re: [REQ/L4D2] Survivor Shoving (Fun)
 
Quote:

Originally Posted by BHaType (Post 2790237)
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.

BHaType 10-03-2022 18:45

Re: [REQ/L4D2] Survivor Shoving (Fun)
 
Quote:

Originally Posted by LividBunny (Post 2790308)
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

LividBunny 10-04-2022 09:56

Re: [REQ/L4D2] Survivor Shoving (Fun)
 
Quote:

Originally Posted by BHaType (Post 2790332)
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.


All times are GMT -4. The time now is 16:03.

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