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

[L4D] Incap Tank punch fix


Post New Thread Reply   
 
Thread Tools Display Modes
Thraka
AlliedModders Donor
Join Date: Aug 2005
Old 07-01-2009 , 12:16   Re: [L4D] Incap Tank punch fix
Reply With Quote #11

I've updated the plugin. My server uses the value of 400 for incap health because it's a difficult server to play on. My updates are as follows:
  1. Added the plugin info code
    Code:
    public Plugin:myinfo = 
    {
    	name = "Tank Punch Incap",
    	author = "DrThunder & Thraka",
    	description = "Players who are incapacitated by a tank punch fly across the map, like a normal punch, instead of just instantly falling to the ground.",
    	version = PLUGIN_VERSION,
    	url = "http://forums.alliedmods.net/showthread.php?t=96075"
    }
  2. Created a version cvar, tankpunch_ver
  3. Created a cvar which represents the health to set a survivor if they are incapped by the tank, tankpunch_incap_health
    (default is -1). This way, if you want the tank incap health to be different, you can set it apart from the normal incap health.
  4. If tankpunch_incap_health is -1, then it uses the value from the survivor_incap_health cvar.
I'm unable to test this at this time, but it does compile and load in the server.
Attached Files
File Type: sp Get Plugin or Get Source (TankPunch.sp - 551 views - 1.2 KB)
Thraka is offline
bman87
Senior Member
Join Date: Dec 2008
Location: Michigan
Old 07-02-2009 , 10:37   Re: [L4D] Incap Tank punch fix
Reply With Quote #12

Quote:
Originally Posted by Thraka View Post
I've updated the plugin. My server uses the value of 400 for incap health because it's a difficult server to play on. My updates are as follows:
  1. Added the plugin info code
    Code:
    public Plugin:myinfo = 
    {
        name = "Tank Punch Incap",
        author = "DrThunder & Thraka",
        description = "Players who are incapacitated by a tank punch fly across the map, like a normal punch, instead of just instantly falling to the ground.",
        version = PLUGIN_VERSION,
        url = "http://forums.alliedmods.net/showthread.php?t=96075"
    }
  2. Created a version cvar, tankpunch_ver
  3. Created a cvar which represents the health to set a survivor if they are incapped by the tank, tankpunch_incap_health
    (default is -1). This way, if you want the tank incap health to be different, you can set it apart from the normal incap health.
  4. If tankpunch_incap_health is -1, then it uses the value from the survivor_incap_health cvar.
I'm unable to test this at this time, but it does compile and load in the server.
This plugin does not contain the cvars you talk about. All that I can see thats changed is the plugin info and it reads the survivor_incap_health cvar
bman87 is offline
bman87
Senior Member
Join Date: Dec 2008
Location: Michigan
Old 07-02-2009 , 11:00   Re: [L4D] Incap Tank punch fix
Reply With Quote #13

This is not tested, but compiled with no errors.

Here is the plugin with the cvars you wanted

  1. Created a version cvar, tankpunch_ver
  2. Created a cvar which represents the health to set a survivor if they are incapped by the tank, tankpunch_incap_health
    (default is -1). This way, if you want the tank incap health to be different, you can set it apart from the normal incap health.
  3. If tankpunch_incap_health is -1, then it uses the value from the survivor_incap_health cvar.
Attached Files
File Type: sp Get Plugin or Get Source (TankPunch.sp - 931 views - 1.7 KB)

Last edited by bman87; 07-02-2009 at 12:56.
bman87 is offline
Thraka
AlliedModders Donor
Join Date: Aug 2005
Old 07-02-2009 , 13:39   Re: [L4D] Incap Tank punch fix
Reply With Quote #14

OH man I uploaded the wrong one. Thx for fixing
Thraka is offline
c0sMo
Member
Join Date: Jun 2009
Old 07-05-2009 , 21:00   Re: [L4D] Incap Tank punch fix
Reply With Quote #15

so this makes it so they fly first then incap?
__________________
c0sMo is offline
Dragonshadow
BANNED
Join Date: Jun 2008
Old 07-05-2009 , 21:34   Re: [L4D] Incap Tank punch fix
Reply With Quote #16

Quote:
Originally Posted by c0sMo View Post
so this makes it so they fly first then incap?
Yup, instead of just incapping on the spot (which makes no sense at all)
Dragonshadow is offline
olj
Veteran Member
Join Date: Jun 2009
Old 07-06-2009 , 20:31   Re: [L4D] Incap Tank punch fix
Reply With Quote #17

Awesome plugin. I will try new version tomorrow.

Ok, seems to be working wout errors, gj.

Last edited by olj; 07-07-2009 at 17:32.
olj is offline
AngryVag
Member
Join Date: Jun 2009
Old 07-13-2009 , 21:02   Re: [L4D] Incap Tank punch fix
Reply With Quote #18

Getting a crap load of these!

L 07/13/2009 - 01:08:21: SourceMod error session started
L 07/13/2009 - 01:08:21: Info (map "l4d_vs_hospital02_subway") (file "errors_20090713.log")
L 07/13/2009 - 01:08:21: [SM] Native "SetEntProp" reported: Entity 3 is invalid
L 07/13/2009 - 01:08:21: [SM] Displaying call stack trace for plugin "TankPunch.smx":
L 07/13/2009 - 01:08:21: [SM] [0] Line 30, /home/groups/alliedmodders/forums/files/1/5/5/2/9/44707.attach::IncapTimer_Function()
__________________
AngryVag is offline
Antithasys
Moderator
Join Date: Apr 2008
Old 07-14-2009 , 12:59   Re: [L4D] Incap Tank punch fix
Reply With Quote #19

Compiles on forums, please removed compiled version and will be approved.
__________________
[my plugins]

When you think about asking a question... consider what have you tried?
Antithasys is offline
Specter666
New Member
Join Date: Jun 2009
Location: mtz, ca
Old 07-19-2009 , 18:50   Re: [L4D] Incap Tank punch fix
Reply With Quote #20

i had this mod on one of my servers and it worked fine... for a while..then i noticed people were in the server for a long time and found out that on occasion when a tank punches a survivor over the edge the survivor loses all but 1 health and it stays there... god survivor lol other than that the mod is very cool
Specter666 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 15:19.


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