AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Edit Frostnade effect/design by XxAvalanchexX (https://forums.alliedmods.net/showthread.php?t=158961)

chaotix911 06-11-2011 06:00

Edit Frostnade effect/design by XxAvalanchexX
 
I recently download XxAvalanchexX's frostnade plugin for my HNS mod server but the people are not used to the effect and color. They said they want it like in the sorpack servers where the frostnades have an indigo tint and dont have an ice below you when you get freezed but have a small glow around the player that breaks like glass.

I was able to edit the color of the tint using the plugin's CVARS but how do you take off the ice shards wrapped below your feet when you get freezed?

Exolent[jNr] 06-11-2011 16:36

Re: Edit Frostnade effect/design by XxAvalanchexX
 
It creates an entity with that model and places it at your feet.

An easy fix to this without changing a lot of code would be to do this:
PHP Code:

// make a frost nova at a player's feet
create_nova(id)
{
    
/*new nova = engfunc(EngFunc_CreateNamedEntity,engfunc(EngFunc_AllocString,"info_target"));

    engfunc(EngFunc_SetSize,nova,Float:{-8.0,-8.0,-4.0},Float:{8.0,8.0,4.0});
    engfunc(EngFunc_SetModel,nova,"models/frostnova.mdl");

    // random orientation
    new Float:angles[3];
    angles[1] = random_float(0.0,360.0);
    set_pev(nova,pev_angles,angles);

    // put it at their feet
    new Float:playerMins[3], Float:novaOrigin[3];
    pev(id,pev_mins,playerMins);
    pev(id,pev_origin,novaOrigin);
    novaOrigin[2] += playerMins[2];
    engfunc(EngFunc_SetOrigin,nova,novaOrigin);

    // make it translucent
    get_rgb_colors(isFrozen[id],angles); // let's just use angles
    set_pev(nova,pev_rendercolor,angles); // ^
    set_pev(nova,pev_rendermode,kRenderTransColor);
    set_pev(nova,pev_renderamt,100.0);

    novaDisplay[id] = nova;*/



chaotix911 06-12-2011 02:51

Re: Edit Frostnade effect/design by XxAvalanchexX
 
Thanks man! I couldn't find that part of the code. I didnt think that they were called frostnova xD +karma(how to?)


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

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