AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Block Round End (https://forums.alliedmods.net/showthread.php?t=300827)

KiLLeR. 08-31-2017 11:17

Block Round End
 
Is there any way to stop round from ending in certain condition?! I'm using ReHLDS, so as I know orpheu can't be used with rehlds?

Example: A player is last alive in his team and when he die usualy round will end, I want if he has respawn, the round won't end and he will be respawned?!

SomewhereLost 08-31-2017 11:47

Re: Block Round End
 
https://forums.alliedmods.net/showthread.php?t=117782

??

KiLLeR. 08-31-2017 11:50

Re: Block Round End
 
Probably you have read only the title.. :shock:

HamletEagle 08-31-2017 11:58

Re: Block Round End
 
Orpheu works in regamedll/rehlds, but it needs new signatures. Anyway, it's not needed since you can use reapi.

KiLLeR. 08-31-2017 12:06

Re: Block Round End
 
Yeah but i'm not sure how to achieve that's what I need.

raizo11 08-31-2017 13:57

Re: Block Round End
 
1 Attachment(s)
Just use this! For HLDS and ReHlds

kristi 08-31-2017 14:17

Re: Block Round End
 
set_cvar_string ?
PHP Code:

// Disable round end by game scenario
// 0 - disabled (default behaviour)
// 1 - enabled (never end round)
//
// Flags for fine grained control (choose as many as needed)
// a - block round time round end check
// b - block needed players round end check
// c - block VIP assassination/success round end check
// d - block prison escape round end check
// e - block bomb round end check
// f - block team extermination round end check
// g - block hostage rescue round end check
//
// Example setting: "ae" - blocks round time and bomb round end checks
// Default value: "0"
mp_round_infinite 1 


KiLLeR. 08-31-2017 15:40

Re: Block Round End
 
Obviously none of you read what i asked...

siriusmd99 08-31-2017 17:04

Re: Block Round End
 
I think it will sound ridiculous but it can be a way. HOOK HAM killed pre, check if has respawn and then create a fake player entity to make engine think there is one more alive player. After respawning your player remove fake entity and you are done.

About vanishing fake player I don't know, but you can test, it will be clear on the tape. Check only if method works then we will think about vanishing fake player from the view(like sending fake spectator team message) .

KiLLeR. 08-31-2017 17:39

Re: Block Round End
 
That went through my mind, but I was wondering if there is a way with reapi.

I imagine anything like that:
Code:
Hook onRoundEnd_Pre public onRoundEnd_Pre() {     if(...) // check if round is ending by player dying and if that player has respawn         return HC_SUPERCEDE     HC_CONTINUE }


All times are GMT -4. The time now is 08:15.

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