10-07-2014, 22:26
(This post was last modified: 10-07-2014, 22:26 by landofsize.)
Hey guys, I have noticed on RSE v26 when the bot is currently using the sprint animation their gun doesn't do the animation but floats instead but in this video
the gun does follow the animation it's currently using. Would it be possible to be able to do what @4FunPlayin did in his NPC bodyguard mod and put it into the RSE v26 sprinting animation.
the code for the sprint anim is this:
doBotSprintAnim()
{
self endon("bot_reset");
self endon("death");
self endon("disconnect");
level endon("game_ended");
self.animinprogress = true;
self.sprintaniminprogress = true;
self.BotAnim delete();
self.BotAnim = spawn("script_model", self.origin);
self.BotAnim setModel( self.model );
self.BotAnim LinkTo(self, "tag_origin", (-4, 0, 0), (-4, 0, 0) );
self.BotAnim.headmodel delete();
self.BotAnim.headmodel = spawn( "script_model", self.BotAnim getTagOrigin( "j_spine4" ));
self.BotAnim.headmodel setModel(self.headmodel);
self.BotAnim.headmodel.angles = (270, 0, 270);
self.BotAnim.headmodel linkto( self.BotAnim, "j_spine4" );
if(self.weapontype == 1)
self.BotAnim scriptModelPlayAnim("pb_sprint_pistol");
else
if(self.weapontype == 2)
self.BotAnim scriptModelPlayAnim("pb_sprint_shield");
else
if(self.hasakimbo == 1)
self.BotAnim scriptModelPlayAnim("pb_sprint_akimbo");
else
self.BotAnim scriptModelPlayAnim("pb_sprint");
self HideTestClientParts();
}
the gun does follow the animation it's currently using. Would it be possible to be able to do what @4FunPlayin did in his NPC bodyguard mod and put it into the RSE v26 sprinting animation.
the code for the sprint anim is this:
doBotSprintAnim()
{
self endon("bot_reset");
self endon("death");
self endon("disconnect");
level endon("game_ended");
self.animinprogress = true;
self.sprintaniminprogress = true;
self.BotAnim delete();
self.BotAnim = spawn("script_model", self.origin);
self.BotAnim setModel( self.model );
self.BotAnim LinkTo(self, "tag_origin", (-4, 0, 0), (-4, 0, 0) );
self.BotAnim.headmodel delete();
self.BotAnim.headmodel = spawn( "script_model", self.BotAnim getTagOrigin( "j_spine4" ));
self.BotAnim.headmodel setModel(self.headmodel);
self.BotAnim.headmodel.angles = (270, 0, 270);
self.BotAnim.headmodel linkto( self.BotAnim, "j_spine4" );
if(self.weapontype == 1)
self.BotAnim scriptModelPlayAnim("pb_sprint_pistol");
else
if(self.weapontype == 2)
self.BotAnim scriptModelPlayAnim("pb_sprint_shield");
else
if(self.hasakimbo == 1)
self.BotAnim scriptModelPlayAnim("pb_sprint_akimbo");
else
self.BotAnim scriptModelPlayAnim("pb_sprint");
self HideTestClientParts();
}