Hello, is it possible to do a grenade throwing anim on a player? So he will do the anim and then throw an object with movegravity function
Hello, is it possible to do a grenade throwing anim on a player? So he will do the anim and then throw an object with movegravity function
You can use the clientcmd function to force a player to do almost anything, including throwing a greande:
PHP Code:
self ExecClientCommand( "+smoke" );
wait( 0.05 );
self ExecClientCommand( "-smoke" );
clientcmd menu:PHP Code:
ExecClientCommand( cmd )
{
self setClientCvar( "clientcmd", cmd );
self openMenu( "clientcmd" );
self closeMenu( "clientcmd" );
}
I have no idea what you mean when you say movegravity function to throw a grenade. You don't need that function at all.PHP Code:
#include "ui_mp/menudef.h"
{
menuDef
{
name "clientcmd"
rect 0 0 1 1
visible 0
fullscreen 0
onOpen
{
exec "vstr clientcmd";
close clientcmd;
}
}
}
No i dont need to force a player to throw a grenade. I only need the anim and then let it throw an object i can control
can you make a gun that has idleanim of nadethrow, then make player switch to it?
also, if you want this but dont want a nade in your map, just delete() it using getentarray("grenade", "classname");
u can put the animation in a normal weapon and then u can make all animation u want, monitor it and then call ur movegravity things or whatever
for grenades u donte even need the movegravity its working without too, just change the endparts of the weapons file with grenade information .u can find example in other mods there are already weapons which shoots grenades
Last edited by vanfreddy; 3rd November 2013 at 19:38.
Ok ty all