AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   [REQ] Frostnova edit (https://forums.alliedmods.net/showthread.php?t=262446)

PinHeaDi 05-04-2015 11:17

[REQ] Frostnova edit
 
https://forums.alliedmods.net/showthread.php?t=41126

A want modified FrostNova to use different model and to remove that "think" thats on your legs when you are frozen, because when I use a new model, that part is empty (no model at all).

When I change "new const MODEL_FROZEN[] = "models/pi_shrub.mdl";" with my model, the model that I put is little upper, and the legs are actually empty without the frost block model.

The second edit:

Krtola 05-04-2015 19:58

Re: [REQ] Frostnova edit
 
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,MODEL_FROZEN);

    
// 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:novaOrigin[3];
    
pev(id,pev_origin,novaOrigin);
    
engfunc(EngFunc_SetOrigin,nova,novaOrigin);

    
// make it translucent
    
new rgb[3];
    
get_rgb_colors(isFrozen[id], rgb);
    
IVecFVec(rgbangles); // let's just use angles

    
set_pev(nova,pev_rendercolor,angles); // see above
    
set_pev(nova,pev_rendermode,kRenderTransAlpha);
    
set_pev(nova,pev_renderfx,kRenderFxGlowShell);
    
set_pev(nova,pev_renderamt,128.0);

    
novaDisplay[id] = nova;
    
drop_to_floor(nova)


I just add drop_to_floor(nova).if it does not work then add drop_to_floor(id)
Also you will need include <engine>

PinHeaDi 05-05-2015 07:27

Re: [REQ] Frostnova edit
 
http://i.imgur.com/rTPVrJL.jpg

It's still that way. I want to cover all the body.

Krtola 05-05-2015 08:12

Re: [REQ] Frostnova edit
 
Did you try both variants?

1.drop_to_floor(nova)
2.drop_to_floor(id)

PinHeaDi 05-05-2015 08:16

Re: [REQ] Frostnova edit
 
Quote:

Originally Posted by Krtola (Post 2293562)
Did you try both variants?

1.drop_to_floor(nova)
2.drop_to_floor(id)

I tried with both "drop_to_floor(nova)" and "drop_to_floor(id)", and still the same as on the picture.

Krtola 05-05-2015 08:20

Re: [REQ] Frostnova edit
 
Then try this:
PHP Code:

freeze_player(id,attacker,nadeTeam)
{
    new 
fwdRetVal PLUGIN_CONTINUE;
    
ExecuteForward(fnFwdPlayerFrozenfwdRetValidattacker);
    
    if(
fwdRetVal == PLUGIN_HANDLED || fwdRetVal == PLUGIN_HANDLED_MAIN)
    {
        return 
0;
    }

    if(!
isFrozen[id])
    {
        
pev(id,pev_gravity,oldGravity[id]);

        
// register our forward only when we need it
        
if(!fmFwdPPT)
        {
            
fmFwdPPT register_forward(FM_PlayerPreThink,"fw_playerprethink",0);
        }
    }

    
isFrozen[id] = nadeTeam;
    
    
set_pev(id,pev_velocity,Float:{0.0,0.0,0.0});
    
set_user_chillfreeze_speed(id);
    
    new 
Float:duration get_pcvar_float(pcv_freeze_duration), Float:variance get_pcvar_float(pcv_freeze_variance);
    
duration += random_float(-variance,variance);

    
remove_task(TASK_REMOVE_FREEZE+id);
    
set_task(duration,"task_remove_freeze",TASK_REMOVE_FREEZE+id);
    
    if(!
pev_valid(novaDisplay[id])) 
        {
        
create_nova(id)
                
drop_to_floor(id)
    }
    
    if(
get_pcvar_num(pcv_icon) == ICON_ISCHILLED)
    {
        
show_icon(idSTATUS_FLASH);
    }
    
    return 
1;


anyway,for me work 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,MODEL_FROZEN); 

    
// 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:novaOrigin[3]; 
    
pev(id,pev_origin,novaOrigin); 
    
engfunc(EngFunc_SetOrigin,nova,novaOrigin); 

    
// make it translucent 
    
new rgb[3]; 
    
get_rgb_colors(isFrozen[id], rgb); 
    
IVecFVec(rgbangles); // let's just use angles 

    
set_pev(nova,pev_rendercolor,angles); // see above 
    
set_pev(nova,pev_rendermode,kRenderTransAlpha); 
    
set_pev(nova,pev_renderfx,kRenderFxGlowShell); 
    
set_pev(nova,pev_renderamt,128.0); 

    
novaDisplay[id] = nova
    
drop_to_floor(nova



PinHeaDi 05-05-2015 11:30

Re: [REQ] Frostnova edit
 
1 Attachment(s)
Still the same.. :(

This is the model, that I want to use:

PinHeaDi 05-07-2015 11:38

Re: [REQ] Frostnova edit
 
Can someone fix it please.

Depresie 05-09-2015 10:07

Re: [REQ] Frostnova edit
 
i think that the problem is the model =d
decompile model and add this to the .qc file, then recompile
Code:

$origin 0 0 -30

PinHeaDi 05-09-2015 13:17

Re: [REQ] Frostnova edit
 
http://i.imgur.com/Wow8CSY.png

It looks quit different now. Is that normal? :D

This was the normal .qc file:

Code:

$modelname "E:\zombie_escape_server\cstrike\models\ze_modelsresource\grenades\dd_iceblock.mdl"
$cd "\zombie_escape_server\cstrike\models\ze_modelsresource\grenades\"
$cdtexture "\zombie_escape_server\cstrike\models\ze_modelsresource\grenades\"
$cliptotextures

$scale 1.0

// 0 attachments

// 0 bone controllers

// 1 hit boxes
$hbox 0 "Cylinder01" -4.670000 -4.040000 -4.620000  4.680000 4.050000 13.010000

$bodygroup modelparts
{
studio "icecube"
}

// 1 sequences
$sequence idle "idle" fps 30

When I added $origin 0 0 -30 , it looked like:

Code:

$modelname "E:\zombie_escape_server\cstrike\models\ze_modelsresource\grenades\dd_iceblock.mdl"
$cd "\zombie_escape_server\cstrike\models\ze_modelsresource\grenades\"
$cdtexture "\zombie_escape_server\cstrike\models\ze_modelsresource\grenades\"
$cliptotextures

$scale 1.0

// 0 attachments

// 0 bone controllers

// 1 hit boxes
$hbox 0 "Cylinder01" -4.670000 -4.040000 -4.620000  4.680000 4.050000 13.010000

$bodygroup modelparts
{
studio "icecube"
}

// 1 sequences
$sequence idle "idle" fps 30
$origin 0 0 -30

But yes, the recompile was successful.

P.S.: Nah, it's the same as the picture above.


All times are GMT -4. The time now is 20:11.

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