Raised This Month: $100 Target: $400
 25% 

Change Hostage HP


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay        Approver:   SniperBeamer (61)
AssKicR
Veteran Member
Join Date: Mar 2004
Location: Norway-Europe(GTM+1)
Old 04-05-2004 , 22:52   Change Hostage HP
Reply With Quote #1

Gives the hostages different hp
Can be changed with the "mp_hostagehp" cvar
DEFAULT is 100hp (Standard CS hostage hp)

If an hostage has 9999 hp it will take 2full AWP clips to the head to kill him
Attached Files
File Type: sma Get Plugin or Get Source (hostage_hp.sma - 6552 views - 1.1 KB)
__________________
My Plugins

Got ??
AssKicR is offline
Krin
Member
Join Date: Apr 2004
Location: New Jersey, USA
Old 04-06-2004 , 06:20  
Reply With Quote #2

Problem with this plugin.

I ran a few tests to make sure it was the plugin causing this.
It's late so I was the only person in my server. Here are the couple of tests:

Test1 (map = cs_office, team = Terrorist)
Killed all 4 hostages.
Commited suicide.

Next round start.
Set hostage HP to 300(amx_cvar mp_hostagehp 300)
Killed a hostage with 2 shots to the chest from glock.
Commited suicide.
Server crashes instead of starting next round.

Code:
L 04/06/2004 - 05:32:29: "Krin<1><STEAM_0:0:153011><>" joined team "TERRORIST" Firing: (game_playerspawn) L 04/06/2004 - 05:32:35: "Krin<1><STEAM_0:0:153011><TERRORIST>" triggered "Killed_A_Hostage" L 04/06/2004 - 05:32:37: "Krin<1><STEAM_0:0:153011><TERRORIST>" triggered "Killed_A_Hostage" L 04/06/2004 - 05:32:44: "Krin<1><STEAM_0:0:153011><TERRORIST>" triggered "Killed_A_Hostage" L 04/06/2004 - 05:32:45: "Krin<1><STEAM_0:0:153011><TERRORIST>" triggered "Killed_A_Hostage" L 04/06/2004 - 05:32:46: [META] (debug:3) Calling engine_amx_i386.so:ClientKill() L 04/06/2004 - 05:32:46: [META] (debug:3) Calling cs_i386.so:ClientKill() L 04/06/2004 - 05:32:46: "Krin<1><STEAM_0:0:153011><TERRORIST>" committed suicide with "world" Firing: (game_playerdie) L 04/06/2004 - 05:32:46: World triggered "Round_Draw" (CT "0") (T "0") L 04/06/2004 - 05:32:46: World triggered "Round_End" Firing: (game_playerspawn) L 04/06/2004 - 05:32:54: World triggered "Round_Start" L 04/06/2004 - 05:33:02: [admincmd.amx] Cmd: "Krin<1><STEAM_0:0:153011><>" set cvar (name "mp_hostagehp") (value "300") L 04/06/2004 - 05:33:22: "Krin<1><STEAM_0:0:153011><TERRORIST>" triggered "Killed_A_Hostage" L 04/06/2004 - 05:33:24: [META] (debug:3) Calling engine_amx_i386.so:ClientKill() L 04/06/2004 - 05:33:24: [META] (debug:3) Calling cs_i386.so:ClientKill() L 04/06/2004 - 05:33:24: "Krin<1><STEAM_0:0:153011><TERRORIST>" committed suicide with "world" Firing: (game_playerdie) L 04/06/2004 - 05:33:24: World triggered "Round_Draw" (CT "0") (T "0") L 04/06/2004 - 05:33:24: World triggered "Round_End" Firing: (game_playerspawn)

Test2 (map = cs_office, team = Terrorist)

Killed a hostage.
Switched to Counter-Terrorist.

Next round start.
Set hostage HP to 1000 (amx_rcon mp_hostagehp 1000)
Killed a hostage with 2 shots to the chest from usp.
Rescued the remaining 3 hostages.
Server crashes instead of starting next round.

Code:
L 04/06/2004 - 05:11:18: World triggered "Round_Start" L 04/06/2004 - 05:11:42: [admincmd.amx] Cmd: "Krin<1><STEAM_0:0:153011><>" server console (cmdline "mp_hostagehp 1000") L 04/06/2004 - 05:11:49: "Krin<1><STEAM_0:0:153011><CT>" triggered "Killed_A_Hostage" L 04/06/2004 - 05:11:51: "Krin<1><STEAM_0:0:153011><CT>" triggered "Touched_A_Hostage" L 04/06/2004 - 05:11:59: "Krin<1><STEAM_0:0:153011><CT>" triggered "Killed_A_Hostage" L 04/06/2004 - 05:12:05: "Krin<1><STEAM_0:0:153011><CT>" triggered "Touched_A_Hostage" L 04/06/2004 - 05:12:22: "Krin<1><STEAM_0:0:153011><CT>" triggered "Rescued_A_Hostage" L 04/06/2004 - 05:12:23: "Krin<1><STEAM_0:0:153011><CT>" triggered "Rescued_A_Hostage" L 04/06/2004 - 05:12:23: Team "CT" triggered "All_Hostages_Rescued" (CT "0") (T "0") L 04/06/2004 - 05:12:23: World triggered "Round_End"

Test3 (map = cs_office, team = Terrorist)

Set hostage HP to 2000 (amx_rcon mp_hostagehp 2000)
Commited suicide.
Server crashes instead of starting next round.

Code:
L 04/06/2004 - 05:28:19: World triggered "Round_Start" L 04/06/2004 - 05:28:34: [admincmd.amx] Cmd: "Krin<1><STEAM_0:0:153011><>" server console (cmdline "mp_hostagehp 2000") L 04/06/2004 - 05:28:38: [META] (debug:3) Calling engine_amx_i386.so:ClientKill() L 04/06/2004 - 05:28:38: [META] (debug:3) Calling cs_i386.so:ClientKill() L 04/06/2004 - 05:28:38: "Krin<1><STEAM_0:0:153011><TERRORIST>" committed suicide with "world" Firing: (game_playerdie) L 04/06/2004 - 05:28:38: World triggered "Round_Draw" (CT "0") (T "0") L 04/06/2004 - 05:28:38: World triggered "Round_End" Firing: (game_playerspawn)

As you can see, no errors are produced. Server just freezes up.

I hope this was useful.
__________________
Krin is offline
Send a message via AIM to Krin
AssKicR
Veteran Member
Join Date: Mar 2004
Location: Norway-Europe(GTM+1)
Old 04-06-2004 , 08:08  
Reply With Quote #3

hmmmm... I'l look into this....
__________________
My Plugins

Got ??
AssKicR is offline
Kamikaze
Senior Member
Join Date: Mar 2004
Location: Butler, PA
Old 04-06-2004 , 15:43  
Reply With Quote #4

same here, it seems to crash the server once it loads.
Kamikaze is offline
Send a message via ICQ to Kamikaze Send a message via AIM to Kamikaze Send a message via MSN to Kamikaze Send a message via Yahoo to Kamikaze
ThorW634
Member
Join Date: Aug 2004
Location: Zeal
Old 04-06-2004 , 19:17  
Reply With Quote #5

as anyone found a solution or a defintion for this bug?
ThorW634 is offline
Send a message via AIM to ThorW634
ts2do
Senior Member
Join Date: Mar 2004
Old 05-27-2004 , 01:25  
Reply With Quote #6

I have an idea....make a timer thatll report a normal hostages hp then right before the next round starts or whenever itll crash, set the hp back to what it should be....
ts2do is offline
Send a message via AIM to ts2do
ts2do
Senior Member
Join Date: Mar 2004
Old 05-30-2004 , 18:24  
Reply With Quote #7

ah yes, and theres one thing lacking in ur hostage plugin, some hostages can use the entity monster_scientist too......check for that ent also
ts2do is offline
Send a message via AIM to ts2do
ts2do
Senior Member
Join Date: Mar 2004
Old 05-30-2004 , 21:18  
Reply With Quote #8

gone--
ts2do is offline
Send a message via AIM to ts2do
AssKicR
Veteran Member
Join Date: Mar 2004
Location: Norway-Europe(GTM+1)
Old 05-30-2004 , 21:39  
Reply With Quote #9

Tnx for that != 0 thingy... Updated first post..

Now plz remove ur code.. It annoys me
__________________
My Plugins

Got ??
AssKicR is offline
Burnzy
Veteran Member
Join Date: Apr 2004
Old 05-31-2004 , 11:36  
Reply With Quote #10

nice fix... i wont be trying it since there is no point if my server is gonna go down in 10 days!
__________________
Burnzy is offline
Send a message via AIM to Burnzy
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 00:11.


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