AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Change Hostage HP (https://forums.alliedmods.net/showthread.php?t=892)

AssKicR 04-05-2004 21:52

Change Hostage HP
 
1 Attachment(s)
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

Krin 04-06-2004 05:20

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.

AssKicR 04-06-2004 07:08

hmmmm... I'l look into this.... :?

Kamikaze 04-06-2004 14:43

same here, it seems to crash the server once it loads.

ThorW634 04-06-2004 18:17

as anyone found a solution or a defintion for this bug?

ts2do 05-27-2004 00:25

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 05-30-2004 17:24

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 05-30-2004 20:18

gone--

AssKicR 05-30-2004 20:39

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

Now plz remove ur code.. It annoys me

Burnzy 05-31-2004 10:36

nice fix... i wont be trying it since there is no point if my server is gonna go down in 10 days!


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

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