Raised This Month: $ Target: $400
 0% 

force round end


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kp_uparrow
Penalized Member
Join Date: Jun 2006
Location: 192.168.0.1
Old 11-14-2007 , 20:01   force round end
Reply With Quote #1

any way to force round end without killing players? or moving their teams

is there a way to trick the engine to think everyone on that team is dead buy they are alive so round will end? maybe the dead flag?
__________________
I USED A SECOND ACCOUNT TO DO MORE KARMA UPS AND DOWNS UNTIL GREENTRYST CAUGHT ME
kp_uparrow is offline
hugz`
Veteran Member
Join Date: Jul 2007
Location: In a house
Old 11-14-2007 , 20:05   Re: force round end
Reply With Quote #2

Hi. Download this.. and then copile the code below.

http://forums.alliedmods.net/showthr...force+team+win

Code:
#include <amxmodx> 
#include <amxmisc> 

#define PLUGIN "3:12 Countdown" 
#define VERSION "1.0" 
#define AUTHOR "M249-M4A1"
Code:
public plugin_init() {  
    register_plugin(PLUGIN, VERSION, AUTHOR)  
    register_event("HLTV", "Countdown", "a", "1=0", "2=0")  
}  

public Countdown() {  
    if (task_exists(12345)) {  
        remove_task(12345)  
        set_task(190.0, "doSomething", 12345)  
        } else {  
        set_task(190.0, "doSomething", 12345)  
    }  
}  

public doSomething() {  
    server_cmd("team_win 1")  
}  



The timer is set to 3:10
__________________
hugz` is offline
Send a message via AIM to hugz`
kp_uparrow
Penalized Member
Join Date: Jun 2006
Location: 192.168.0.1
Old 11-14-2007 , 20:19   Re: force round end
Reply With Quote #3

that moves their team, the reason i dont want it to move their team is moving 16 players will svc_bad

there must be something in the half life engine checks to make the round end

can we fool the round timer?
__________________
I USED A SECOND ACCOUNT TO DO MORE KARMA UPS AND DOWNS UNTIL GREENTRYST CAUGHT ME
kp_uparrow is offline
M249-M4A1
I <3 Mac
Join Date: May 2005
Location: Not interested
Old 11-14-2007 , 21:47   Re: force round end
Reply With Quote #4

Get http://forums.alliedmods.net/showthread.php?p=344114 and create a timer that auto-terminates around about the same time as mp_roundtime. That should suit your needs.
__________________
M249-M4A1 is offline
Orangutanz
Veteran Member
Join Date: Apr 2006
Old 11-14-2007 , 22:05   Re: force round end
Reply With Quote #5

If you are feeling adventurous have a play with this unknown entity. It's index is on get_maxplayers() + 1.

I spoke to Alfred from Valve some time back since I noticed this entity he said it was something to do with a timer as far as he knew.

No I didn't contact him specifically about this entity, it was about the player slot problem upon initial server startup. Last player index isn't loaded until server reaches maximum capacity, this bug is still not fixed either! Along with various other HLDS VGUI console bugs I reported as well
__________________
|<-- Retired from everything Small/Pawn related -->|
You know when you've been Rango'd
Orangutanz is offline
hugz`
Veteran Member
Join Date: Jul 2007
Location: In a house
Old 11-14-2007 , 23:39   Re: force round end
Reply With Quote #6

Quote:
Originally Posted by M249-M4A1 View Post
Get http://forums.alliedmods.net/showthread.php?p=344114 and create a timer that auto-terminates around about the same time as mp_roundtime. That should suit your needs.
LoL! Thats what I just posted above! =o
__________________
hugz` is offline
Send a message via AIM to hugz`
M249-M4A1
I <3 Mac
Join Date: May 2005
Location: Not interested
Old 11-15-2007 , 00:13   Re: force round end
Reply With Quote #7

Quote:
Originally Posted by hugz` View Post
LoL! Thats what I just posted above! =o
Command "team win 1" is not a default command, and I posted the plugin that has that command, and instructions on how to make the timer plugin better, because what we have so far is to force a team win after 3:12, and we want it to force a team win in association with the round timer
__________________
M249-M4A1 is offline
hugz`
Veteran Member
Join Date: Jul 2007
Location: In a house
Old 11-15-2007 , 15:20   Re: force round end
Reply With Quote #8

Quote:
Originally Posted by M249-M4A1 View Post
Command "team win 1" is not a default command, and I posted the plugin that has that command, and instructions on how to make the timer plugin better, because what we have so far is to force a team win after 3:12, and we want it to force a team win in association with the round timer
lol, I'm not trying to start an argument.. and you did help me out a lot..
But I did post the link to the plugin that has team_win 1 and I know it isn't default lol =P.. and you can change the timer from 190 to what ever.. in seconds. Works on my server.
__________________
hugz` is offline
Send a message via AIM to hugz`
kp_uparrow
Penalized Member
Join Date: Jun 2006
Location: 192.168.0.1
Old 11-15-2007 , 01:29   Re: force round end
Reply With Quote #9

seems that no dead flags make the round end
__________________
I USED A SECOND ACCOUNT TO DO MORE KARMA UPS AND DOWNS UNTIL GREENTRYST CAUGHT ME
kp_uparrow 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 07:57.


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