AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   call round end & another thing (https://forums.alliedmods.net/showthread.php?t=156953)

georgik57 05-14-2011 09:14

call round end & another thing
 
as the title says, how do i manually call round end?
also how can i change the server sky & weather (rain, snow, fog) without map change?
i mean call the engine effects, not make them manually through amxx

monolit 05-14-2011 09:25

Re: call round end & another thing
 
Search for force round end,

georgik57 05-14-2011 09:28

Re: call round end & another thing
 
without slaying the players it's not possible?

NiHiLaNTh 05-14-2011 09:38

Re: call round end & another thing
 
Quote:

Originally Posted by georgik57 (Post 1469158)
as the title says, how do i manually call round end?
also how can i change the server sky & weather (rain, snow, fog) without map change?
i mean call the engine effects, not make them manually through amxx

Well you can try to spawn env_rain, env_snow and env_fog entities, although Im not sure will this work.Also you can send Fog Message, but I don't know what are that message arguments. :down:
About round end:
1) You can use Orpheu.Search for Arkshines Round terminator plugin.
2) If you dont want to use Orpheu you can use VEN's method: spawn a bot in loosing team, switch everyone else to opposite team(and cache their last team), than kill a bot and hide DeathMsg and than return everyone else back to their teams. :shock:
3) Maybe there is a way to force engine to think that bomb has been defused/explodedm but I dont know about that much. :cry:

Arkshine 05-14-2011 09:46

Re: call round end & another thing
 
About Fog message, you can use this stock : https://forums.alliedmods.net/showpo...0&postcount=13

georgik57 05-14-2011 10:12

Re: call round end & another thing
 
Quote:

Originally Posted by NiHiLaNTh (Post 1469179)
Well you can try to spawn env_rain, env_snow and env_fog entities, although Im not sure will this work.Also you can send Fog Message, but I don't know what are that message arguments. :down:
About round end:
1) You can use Orpheu.Search for Arkshines Round terminator plugin.
2) If you dont want to use Orpheu you can use VEN's method: spawn a bot in loosing team, switch everyone else to opposite team(and cache their last team), than kill a bot and hide DeathMsg and than return everyone else back to their teams. :shock:
3) Maybe there is a way to force engine to think that bomb has been defused/explodedm but I dont know about that much. :cry:

it seems that zp already has a fake hostage entity created in plugin precache
PHP Code:

    new ent
    
    
// Fake Hostage (to force round ending)
    
ent engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocString"hostage_entity"))
    if (
pev_valid(ent))
    {
        
engfunc(EngFunc_SetOriginentFloat:{8192.0,8192.0,8192.0})
        
dllfunc(DLLFunc_Spawnent)
    } 

but on the other hand, zp removes the rescue zone
so how can i do it?
Quote:

Originally Posted by Arkshine (Post 1469186)
About Fog message, you can use this stock : https://forums.alliedmods.net/showpo...0&postcount=13

thanks

bibu 05-14-2011 11:23

Re: call round end & another thing
 
Quote:

Originally Posted by georgik57 (Post 1469198)
it seems that zp already has a fake hostage entity created in plugin precache
PHP Code:

    new ent
    
    
// Fake Hostage (to force round ending)
    
ent engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocString"hostage_entity"))
    if (
pev_valid(ent))
    {
        
engfunc(EngFunc_SetOriginentFloat:{8192.0,8192.0,8192.0})
        
dllfunc(DLLFunc_Spawnent)
    } 

but on the other hand, zp removes the rescue zone
so how can i do it?

Simple, it creates a hostage outside a map, removes the rescue zone cause it isn't needed. And if CT's don't rescue the hostage, it will be after the round time auto T's win. :)

georgik57 05-14-2011 12:03

Re: call round end & another thing
 
Quote:

Originally Posted by bibu (Post 1469230)
Simple, it creates a hostage outside a map, removes the rescue zone cause it isn't needed. And if CT's don't rescue the hostage, it will be after the round time auto T's win. :)

hmm
how can i auto set the round time to 0 when needed?

NiHiLaNTh 05-14-2011 12:20

Re: call round end & another thing
 
Quote:

Originally Posted by georgik57 (Post 1469252)
hmm
how can i auto set the round time to 0 when needed?

I think you need to call this message.

ConnorMcLeod 05-14-2011 12:27

Re: call round end & another thing
 
Quote:

Originally Posted by NiHiLaNTh (Post 1469265)
I think you need to call this message.

This is just visual effect, you need orpheu to set real roundtime value.


All times are GMT -4. The time now is 04:28.

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