Raised This Month: $ Target: $400
 0% 

Really Need Some Help...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
shine771
Senior Member
Join Date: Jun 2007
Old 07-17-2007 , 07:34   Really Need Some Help...
Reply With Quote #1

I want to create FOG for CS 1.6. Just want to all be dark and foggy. Want to scare the hell out of players XD. Ok know for CS 1.6 - FOG. I searched forum and i found this:
Code:
    weather_ent = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "env_fog"))
    DispatchKeyValue(weather_ent,"density","0.001")
    DispatchKeyValue(weather_ent,"rendercolor","116 137 147")
What exactly i should do with this code. I know thats a n00by question. But i really dont know. I try'd this.
Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <engine>

#define PLUGIN "Fog"
#define VERSION "1.0"
#define AUTHOR "Sh!nE*"

new weather_ent

public plugin_init() {
    register_plugin(PLUGIN, VERSION, AUTHOR)
    
    set_task(1.0,"start_fog")
}

public start_fog()
{
    weather_ent = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "env_fog"))
    DispatchKeyValue(weather_ent,"density","0.001")
    DispatchKeyValue(weather_ent,"rendercolor","116 137 147")
}
RESULT: NOTHING

I want to make a good fog. Not millions of sprites... It'll LAG my server. I hope you can help. I know for CS - good FOG - Impossible. But i saw that post. And i got a hope...
Thanks.
shine771 is offline
 


Thread Tools
Display Modes

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 21:28.


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