AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D/L4D2]Realish_Tank_Physx (https://forums.alliedmods.net/showthread.php?t=284273)

Lux 06-23-2016 05:09

[L4D/L4D2]Realish_Tank_Physx
 
2 Attachment(s)
Hello, well this starting off optimising deathchaos25 Allow the Tank to send incap survivors flying plugin because i did not like the code but i am a fan of the plugin really cool, but well this happened :D

Features:
Allow Tank to Puch incapped survivor's flying
Allow Tank to Puch people flying who would of been incapped from the punch, then incap
Allow TankRock to sendpeople flying like a TankPunchish and rock will send people flying even if they are about to be incapped muhahaha

YouTubeVideo[LINK]
Please mind my friend talking in the video :shock:

Also i'm rubbish at maths :o

ConVars/CFG:
PHP Code:

config nameRealish_Tank_Phyx.cfg

rtp_rockphyx 
"1"(DefEnable or Disable RockPhyx,

rtp_incapknockBack "1"(DefEnable or Disable Incapped slap,

rtp_KnockBackPreIncap "1"(DefEnable or Disable Pre incapped flying,

rtp_rockforce "800.0"(DefForce of the rockvery high values send you flying very fast&far (MIN 1.0 MAX 2147483647.0), 

Please besure to remove [L4D2] Incap Tank punch fix.smx, because this will cause problems!!!

Enjoy

Log:
(Release 1.0)
Thanks to Dominatez for l4d1 testing

(Update 1.1)
Fixed Invalid Entity Error of getting classname
Add Convar for Rock Radius
Besure to remove Config or Add convar in the config

(Update 1.2)
fixed entprop offset m_bIsOnTHirdStrike using m_IsGoingToDie for l4d1 instead thanks P00kster

recoded the client physics force from using an entity to push to angle calculation then pushing the entity in said angle suggested by timocop.
should feel more real

(Update 1.3)
Changed the way incap tank puch works it no longer, takes you out of incap to punch you rather uses entity push instead (i found it annoying)
I will keep 1.2 on OP if anyone like's the old way better.

optmized code somemore.


removed rtp_rockradius convar as it was unneeded
Either remove convar or remove config and let it auto create.
NOTE:
rtp_rockforce is effects stuff differently in version 1.2

LoneBat 06-23-2016 14:01

Re: [L4D/L4D2]Realish_Tank_Phyx
 
Quote:

L 06/24/2016 - 00:38:53: SourceMod error session started
L 06/24/2016 - 00:38:53: Info (map "c5m1_waterfront") (file "errors_20160624.log")
L 06/24/2016 - 00:38:53: [SM] Native "GetEntPropString" reported: Entity 2 (2) is invalid
L 06/24/2016 - 00:38:53: [SM] Displaying call stack trace for plugin "Realish_Tank_Physx.smx":
L 06/24/2016 - 00:38:53: [SM] [0] Line 737, /groups/sourcemod/compiler-1.6/include/entity.inc::GetEntityClassname()
L 06/24/2016 - 00:38:53: [SM] [1] Line 241, /home/forums/content/files/2/5/7/8/4/1/155661.attach::OnEntityDestroyed()
L 06/24/2016 - 00:38:56: Error log file session closed.

Lux 06-23-2016 22:01

Re: [L4D/L4D2]Realish_Tank_Phyx
 
Fixed error, besure to download new version on Main Post

bazrael 08-01-2016 15:27

Re: [L4D/L4D2]Realish_Tank_Phyx
 
PHP Code:

rtp_incapknockBack "1"(DefEnable or Disable Incapped slap
rtp_KnockBackPreIncap 
"1"(DefEnable or Disable Pre incapped flying 

What's the difference of above 2 cvars? What's pre incapacitated?
--edit--
I tested for a while and realize its difference. Thanks for reply.

Lux 08-01-2016 16:02

Re: [L4D/L4D2]Realish_Tank_Phyx
 
This Part https://youtu.be/pL1f5aTZDAM?t=132
because death did not have this where when you get incapped from a hit you dont go flying that cvar enables it.

Dominatez 12-12-2016 14:11

Re: [L4D/L4D2]Realish_Tank_Phyx
 
Confirming that this indeed works on L4D1

Lux 02-10-2017 07:13

Re: [L4D/L4D2]Realish_Tank_Phyx
 
Quote:

Originally Posted by Dominatez (Post 2477304)
Confirming that this indeed works on L4D1

Thanks Alot 3Witches for yourukiarukiarukia

P00kster 02-22-2017 19:21

Re: [L4D/L4D2]Realish_Tank_Phyx
 
This plugin has an issue with L4D1. The netprop "m_bIsOnThirdStrike" is only valid for L4D2 and does not exist in L4D1. In L4D1, you need to use the netprop "m_isGoingToDie" instead.

Lux 02-23-2017 19:19

Re: [L4D/L4D2]Realish_Tank_Phyx
 
Quote:

Originally Posted by P00kster (Post 2497644)
This plugin has an issue with L4D1. The netprop "m_bIsOnThirdStrike" is only valid for L4D2 and does not exist in L4D1. In L4D1, you need to use the netprop "m_isGoingToDie" instead.

Fixed this issue.

recoded the client physics force from using an entity to push to angle calculation then pushing the entity in said angle suggested by timocop.

removed rtp_rockradius convar as it was unneeded



Lux 03-10-2017 10:47

Re: [L4D/L4D2]Realish_Tank_Phyx
 
(Update 1.3)
Changed the way incap tank puch works it no longer, takes you out of incap to punch you rather uses entity push instead (i found it annoying)
I will keep 1.2 if anyone like's the old way better.

optmized code somemore.

1.3 has a much steeper angles and uses the client eye anges to push client in the direction and up and down angels are capped


All times are GMT -4. The time now is 12:26.

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