AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   setting frame on v_ models (https://forums.alliedmods.net/showthread.php?t=45570)

Cheap_Suit 10-06-2006 02:39

setting frame on v_ models
 
Is it possible to set what frame you want on a sequence?

Xanimos 10-06-2006 08:06

Re: setting frame on v_ models
 
in FM, there are a few pev's that look like they might be what you need. I can't test them so, if one of you FM guru's want to tell the right one...

Pev's
Code:

pev_frame
pev_animtime
pev_framerate

pev_modelindex  //?
pev_sequence  // I think this is player model sequence

Better yet you have the cd functions with the following constant
Code:

CD_WeaponAnim

XxAvalanchexX 10-06-2006 12:26

Re: setting frame on v_ models
 
modelindex is the index of the player's model.
sequence is the animation sequence of the player's model.
framerate is the framerate of the player's model.
animtime appears to be set to gpGlobals->time every time a frame is advanced.
weaponanim is the animation sequence of the player's model.

Because everything else refers to a player's model, rather than a player's weapon model (excluding weaponanim), I would assume that frame does the same. But, in one of my mods that I toyed around with a for a while, I remember that when I would deploy a weapon, it would render the last frame of the animation for a split second and then start from the beginning. So, on weapon deploy, I set the player's frame to 0.0, and it fixed the problem. So maybe frame does control weapon animations?? Good luck...


All times are GMT -4. The time now is 04:56.

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