Raised This Month: $ Target: $400
 0% 

Edit Frostnade effect/design by XxAvalanchexX


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 06-11-2011 , 16:36   Re: Edit Frostnade effect/design by XxAvalanchexX
Reply With Quote #1

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;*/

__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] 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 23:29.


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