Raised This Month: $ Target: $400
 0% 

Block Round End


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
KiLLeR.
Senior Member
Join Date: Jul 2014
Location: Bulgaria
Old 08-31-2017 , 11:17   Block Round End
Reply With Quote #1

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?!

Last edited by KiLLeR.; 08-31-2017 at 17:40.
KiLLeR. is offline
SomewhereLost
AlliedModders Donor
Join Date: Mar 2014
Location: Tomorrowland
Old 08-31-2017 , 11:47   Re: Block Round End
Reply With Quote #2

https://forums.alliedmods.net/showthread.php?t=117782

??
__________________
SomewhereLost is offline
Send a message via Skype™ to SomewhereLost
KiLLeR.
Senior Member
Join Date: Jul 2014
Location: Bulgaria
Old 08-31-2017 , 11:50   Re: Block Round End
Reply With Quote #3

Probably you have read only the title..
KiLLeR. is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 08-31-2017 , 11:58   Re: Block Round End
Reply With Quote #4

Orpheu works in regamedll/rehlds, but it needs new signatures. Anyway, it's not needed since you can use reapi.
__________________
HamletEagle is offline
KiLLeR.
Senior Member
Join Date: Jul 2014
Location: Bulgaria
Old 08-31-2017 , 12:06   Re: Block Round End
Reply With Quote #5

Yeah but i'm not sure how to achieve that's what I need.
KiLLeR. is offline
raizo11
BANNED
Join Date: Dec 2013
Location: https://t.me/pump_upp
Old 08-31-2017 , 13:57   Re: Block Round End
Reply With Quote #6

Just use this! For HLDS and ReHlds
Attached Files
File Type: zip roundendblock.zip (22.7 KB, 574 views)

Last edited by raizo11; 08-31-2017 at 13:59.
raizo11 is offline
Send a message via ICQ to raizo11 Send a message via AIM to raizo11 Send a message via MSN to raizo11 Send a message via Yahoo to raizo11 Send a message via Skype™ to raizo11
kristi
Senior Member
Join Date: Nov 2016
Old 08-31-2017 , 14:17   Re: Block Round End
Reply With Quote #7

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 

Last edited by kristi; 08-31-2017 at 14:32.
kristi is offline
Send a message via Skype™ to kristi
KiLLeR.
Senior Member
Join Date: Jul 2014
Location: Bulgaria
Old 08-31-2017 , 15:40   Re: Block Round End
Reply With Quote #8

Obviously none of you read what i asked...
KiLLeR. is offline
siriusmd99
Veteran Member
Join Date: Oct 2013
Location: Republic of Moldova
Old 08-31-2017 , 17:04   Re: Block Round End
Reply With Quote #9

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) .

Last edited by siriusmd99; 08-31-2017 at 17:10.
siriusmd99 is offline
KiLLeR.
Senior Member
Join Date: Jul 2014
Location: Bulgaria
Old 08-31-2017 , 17:39   Re: Block Round End
Reply With Quote #10

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 }

Last edited by KiLLeR.; 08-31-2017 at 17:45.
KiLLeR. 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 14:13.


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