AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   VSH / Freak Fortress (https://forums.alliedmods.net/forumdisplay.php?f=154)
-   -   FF2 [Abilities] Fog Effects (BETA) (https://forums.alliedmods.net/showthread.php?t=284270)

93SHADoW 06-23-2016 00:47

[Abilities] Fog Effects (BETA)
 
8 Attachment(s)

Fog Effects (BETA)

http://i.imgur.com/52CpTkfh.jpg

"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"
        }


Naydef 06-23-2016 07:52

Re: [Abilities] Fog Effects (BETA)
 
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);
    } 


Chdata 06-23-2016 09:57

Re: [Abilities] Fog Effects (BETA)
 
what about skybox fog

93SHADoW 06-23-2016 11:30

Re: [Abilities] Fog Effects (BETA)
 
Quote:

Originally Posted by Naydef (Post 2429888)
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.

Naydef 06-29-2016 14:21

Re: [Abilities] Fog Effects (BETA)
 
This subplugin seems to crash my server!
Crash Dumps:
https://crash.limetech.org/mei23v4aiquu
https://crash.limetech.org/npnpdsqczoqy

friagram 06-30-2016 10:08

Re: [Abilities] Fog Effects (BETA)
 
stops copies me.

Naydef 07-07-2016 16:43

Re: [Abilities] Fog Effects (BETA)
 
2 Attachment(s)
Here's a fixed version of the subplugin with server crashes (hopefully) fixed! Changed version number to 1.02

Chdata 07-08-2016 17:10

Re: [Abilities] Fog Effects (BETA)
 
support for https://developer.valvesoftware.com/wiki/Sky_camera yet?

93SHADoW 07-13-2016 00:38

Re: [Abilities] Fog Effects (BETA)
 
Quote:

Originally Posted by Chdata (Post 2434874)

to-do.

Chdata 07-13-2016 13:07

Re: [Abilities] Fog Effects (BETA)
 
sky_camrearer


All times are GMT -4. The time now is 23:47.

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