[L4D] How to force mission lost
Hi,
how to force mission lost without having killing all team? I tried: Code:
int oldFlags = GetCommandFlags("scenario_end"); But calling it just in arbitrary place has no effect. Also: Code:
Event hEvent = CreateEvent("mission_lost"); Ideas? Thanks. |
Re: [L4D] How to force mission lost
Try "endround"
|
Re: [L4D] How to force mission lost
What if create game_end entity ?
https://developer.valvesoftware.com/wiki/Game_end |
Re: [L4D] How to force mission lost
Thank you, Bacardi and eyal282.
Here is my code: Code:
#include <sourcemod> Quote:
Quote:
EDIT. 3) Checked endround command. It work very-very fast. Suspiciously, too fast. But it really restart the round. There is slightly difference between fake round end events sequence: Quote:
Quote:
|
Re: [L4D] How to force mission lost
Try log events (or look from console).
con_logfile myevents.log sm_cvar net_showevents 2 |
Re: [L4D] How to force mission lost
Quote:
|
Re: [L4D] How to force mission lost
look:
help con_logfile try: sm_cvar con_logfile logfile.log |
Re: [L4D] How to force mission lost
ahh, of course. Thank you. After changing that var, file is created in the root of left4dead/ server folder.
|
Re: [L4D] How to force mission lost
Have you tried lying to the game? Try setting netprop m_bIsAlive or whatever it's called on all survivors, use "endround" and restore it. Check if the events are solved.
|
Re: [L4D] How to force mission lost
eyal282, interesting idea.
Human player is CTerrorPlayer in L4D. I didn't found *Alive properties in map. To be sure: Quote:
The differeces are: Alive state: Quote:
Quote:
Code:
public OnPluginStart() Unfortunately, that is not always happen. Randomly, after executing above code (without "endround" cmd) round is not end automatically. Dunno why. I checked: we only need these two prop: m_lifeState + deadflag. It's enough. I tried set these prop in vice versa order and with 0.5 sec. delay between each other, but no luck. Game randomly ends the round or not. Adding "endround" cmd not help to recover correct events sequence. It's just a signal for instant round_end. |
All times are GMT -4. The time now is 05:55. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.