Raised This Month: $208 Target: $400
 52% 

FF2 [Abilities] Fog Effects (BETA)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SHADoW NiNE TR3S
AlliedModders Donor
Join Date: Jul 2014
Location: Nepu Nepu?
Old 06-23-2016 , 01:47   [Abilities] Fog Effects (BETA)
Reply With Quote #1


Fog Effects (BETA)



"Every Town Has An Elm Street" -Freddy Krueger

This can be configured as a RAGE, or as a passive effect.
NOTE: THIS DOES NOT CHANGE THE SKYBOX TEXTURE! IT ONLY CREATES THE EFFECT NECESSARY TO CREATE FOG EFFECTS, LIKE THE SCREENSHOT ABOVE!

RAGE. Compatible with Ability Management System:
Code:
	"abilityX"
	{
		"name"	"rage_fog_fx"
		"arg1"	"0" // blend
		
		// color 1
		"arg2"	"0"	// red
		"arg3"	"0"	// green
		"arg4"	"0"	// blue
		
		// color 2
		"arg5"	"0"	// red
		"arg6"	"0"	// green
		"arg7"	"0"	// blue
		
		// fog properties
		"arg8"	"64.0"	// fog start distance
		"arg9"	"384.0"	// fog end distance
		"arg10"	"1.0"	// fog density
		"arg11"	"5.0"	// fog duration
		
		// only needed if using AMS
		"arg1001"	"0.0" // delay before first use 
		"arg1002"	"30.0" // cooldown 
		"arg1003"	"Darken" // name 
		"arg1004"	"Every town has an Elm Street" // description 
		"arg1005"	"50.0" // rage cost 
		"arg1006"	"0" // index for ability in the AMS menu 
		"plugin_name"	"ff2_fog"
	}
PASSIVE:
Code:
	"abilityX"
	{
		"name"	"fog_fx"
		"arg1"	"0" // blend
		
		// color 1
		"arg2"	"0"	// red
		"arg3"	"0"	// green
		"arg4"	"0"	// blue
		
		// color 2
		"arg5"	"0"	// red
		"arg6"	"0"	// green
		"arg7"	"0"	// blue
		
		// fog properties
		"arg8"	"64.0"	// fog start distance
		"arg9"	"384.0"	// fog end distance
		"arg10"	"1.0"	// fog density
		
		"plugin_name"	"ff2_fog"
	}
Attached Files
File Type: smx ff2_fog.smx (9.4 KB, 661 views)
File Type: sp Get Plugin or Get Source (ff2_fog.sp - 530 views - 6.8 KB)
__________________

Last edited by SHADoW NiNE TR3S; 08-04-2016 at 14:54.
SHADoW NiNE TR3S is offline
Send a message via AIM to SHADoW NiNE TR3S Send a message via Skype™ to SHADoW NiNE TR3S
Naydef
Senior Member
Join Date: Dec 2015
Location: Doom Town, Nevada
Old 06-23-2016 , 08:52   Re: [Abilities] Fog Effects (BETA)
Reply With Quote #2

PHP Code:
    if(fogDuration[client]!=INACTIVE)
        {
            
fogDuration[client]=INACTIVE;
            
SDKUnhook(clientSDKHook_ThinkFogTimer);
        } 
SDKHook_Think? I thought is was only for non-clients. I think this is mistake. I see also:
PHP Code:
else
    {
        
fogDuration[client]=GetGameTime()+FF2_GetAbilityArgumentFloat(bossthis_plugin_name"rage_fog_fx"115.0);
        
SDKHook(clientSDKHook_PreThinkPostFogTimer);
    } 
__________________
My plugins:
Admin Stealth REDUX(v1.6.1)

Non-Sourcemod related projects:
8086eD x86 Emulator

Steam:
naydef

Last edited by Naydef; 06-23-2016 at 09:02.
Naydef is offline
Chdata
Veteran Member
Join Date: Aug 2012
Location: Computer Chair, Illinois
Old 06-23-2016 , 10:57   Re: [Abilities] Fog Effects (BETA)
Reply With Quote #3

what about skybox fog
__________________
Chdata is offline
SHADoW NiNE TR3S
AlliedModders Donor
Join Date: Jul 2014
Location: Nepu Nepu?
Old 06-23-2016 , 12:30   Re: [Abilities] Fog Effects (BETA)
Reply With Quote #4

Quote:
Originally Posted by Naydef View Post
PHP Code:
    if(fogDuration[client]!=INACTIVE)
        {
            
fogDuration[client]=INACTIVE;
            
SDKUnhook(clientSDKHook_ThinkFogTimer);
        } 
SDKHook_Think? I thought is was only for non-clients. I think this is mistake. I see also:
PHP Code:
else
    {
        
fogDuration[client]=GetGameTime()+FF2_GetAbilityArgumentFloat(bossthis_plugin_name"rage_fog_fx"115.0);
        
SDKHook(clientSDKHook_PreThinkPostFogTimer);
    } 

Yea, meant to use PreThinkPost, thanks for pointing it out. Fixed.
__________________
SHADoW NiNE TR3S is offline
Send a message via AIM to SHADoW NiNE TR3S Send a message via Skype™ to SHADoW NiNE TR3S
Naydef
Senior Member
Join Date: Dec 2015
Location: Doom Town, Nevada
Old 06-29-2016 , 15:21   Re: [Abilities] Fog Effects (BETA)
Reply With Quote #5

This subplugin seems to crash my server!
Crash Dumps:
https://crash.limetech.org/mei23v4aiquu
https://crash.limetech.org/npnpdsqczoqy
__________________
My plugins:
Admin Stealth REDUX(v1.6.1)

Non-Sourcemod related projects:
8086eD x86 Emulator

Steam:
naydef

Last edited by Naydef; 06-30-2016 at 11:21.
Naydef is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 06-30-2016 , 11:08   Re: [Abilities] Fog Effects (BETA)
Reply With Quote #6

stops copies me.
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram is offline
Naydef
Senior Member
Join Date: Dec 2015
Location: Doom Town, Nevada
Old 07-07-2016 , 17:43   Re: [Abilities] Fog Effects (BETA)
Reply With Quote #7

Here's a fixed version of the subplugin with server crashes (hopefully) fixed! Changed version number to 1.02
Attached Files
File Type: sp Get Plugin or Get Source (ff2_fog.sp - 100 views - 6.8 KB)
File Type: smx ff2_fog.smx (9.3 KB, 119 views)
__________________
My plugins:
Admin Stealth REDUX(v1.6.1)

Non-Sourcemod related projects:
8086eD x86 Emulator

Steam:
naydef
Naydef is offline
Chdata
Veteran Member
Join Date: Aug 2012
Location: Computer Chair, Illinois
Old 07-08-2016 , 18:10   Re: [Abilities] Fog Effects (BETA)
Reply With Quote #8

support for https://developer.valvesoftware.com/wiki/Sky_camera yet?
__________________
Chdata is offline
SHADoW NiNE TR3S
AlliedModders Donor
Join Date: Jul 2014
Location: Nepu Nepu?
Old 07-13-2016 , 01:38   Re: [Abilities] Fog Effects (BETA)
Reply With Quote #9

Quote:
Originally Posted by Chdata View Post
to-do.
__________________
SHADoW NiNE TR3S is offline
Send a message via AIM to SHADoW NiNE TR3S Send a message via Skype™ to SHADoW NiNE TR3S
Chdata
Veteran Member
Join Date: Aug 2012
Location: Computer Chair, Illinois
Old 07-13-2016 , 14:07   Re: [Abilities] Fog Effects (BETA)
Reply With Quote #10

sky_camrearer
__________________
Chdata is offline
Reply


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 08:17.


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