Raised This Month: $ Target: $400
 0% 

[INS] I try remove fog.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
motto
Member
Join Date: Aug 2009
Location: Poland
Old 06-01-2010 , 07:55   [INS] I try remove fog.
Reply With Quote #1

I try turn off fog. I found this.

Code:
#include <sourcemod>
#include <sdktools>

public Plugin:myinfo = 
{
	name = "fogremover",
	author = "anacron",
	description = "plugin remove the fog",
	version = "1.0.2",
	url = "http://infmaous-clan.eu"
}

public OnPluginStart()
{
	HookEvent("round_start",Event_round_start);
}

public Action:Event_round_start(Handle:event,const String:name[],bool:dontBroadcast)
{
	new entity;
	FindEntityByClassname(entity,"env_fog_controller");
	if (IsValidEntity(entity))
	{
		AcceptEntityInput(entity,"TurnOff");
	}
}
but

Code:
[SM] Native "HookEvent" reported: Game event "round_start" does not exist
Any idea?
__________________
217.153.241.222:27015 CS GO [PL] Panika Emeryta

Last edited by motto; 06-01-2010 at 07:57.
motto is offline
psychonic

BAFFLED
Join Date: May 2008
Old 06-01-2010 , 08:20   Re: [INS] I try remove fog.
Reply With Quote #2

Insurgency does not have a round_start event. You'll have to fix an alternative.
psychonic is offline
motto
Member
Join Date: Aug 2009
Location: Poland
Old 06-01-2010 , 08:34   Re: [INS] I try remove fog.
Reply With Quote #3

Quote:
Originally Posted by psychonic View Post
Insurgency does not have a round_start event.
Really? I can read and understand this "Game event "round_start" does not exist".

Quote:
Originally Posted by psychonic View Post
You'll have to fix an alternative.
...and this is the problem now. I don't have any idea.
__________________
217.153.241.222:27015 CS GO [PL] Panika Emeryta
motto is offline
psychonic

BAFFLED
Join Date: May 2008
Old 06-01-2010 , 08:56   Re: [INS] I try remove fog.
Reply With Quote #4

Quote:
Originally Posted by motto View Post
...and this is the problem now. I don't have any idea.
Other people have hacked around this by using OnMapStart with a short timer (to get first round) and hooking round_end and then using a timer (with TIMER_FLAG_NO_MAPCHANGE) to guess start of next round.
psychonic is offline
motto
Member
Join Date: Aug 2009
Location: Poland
Old 06-01-2010 , 08:59   Re: [INS] I try remove fog.
Reply With Quote #5

But this will not work with turn off entity. Maybe I can create extension with virtual round_start event...
__________________
217.153.241.222:27015 CS GO [PL] Panika Emeryta
motto 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:26.


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