adding new singleplayer animations

Please don't post here unless its in response to an existing topic. New discussion is to be shared in the other forums.

adding new singleplayer animations

Postby Baer » Wed Mar 07, 2007 5:31 pm

Ok guys I am working on a singleplayer mod and need to add new animations, I copied bludgeonweapon for adding swords, Now in the Swing function there is a line that says:
Activity nHitActivity = ACT_VM_HITCENTER;

I am going to add the new anim like so:

Activity nHitActivity = ACT_VM_SLASH1A_HIT;

What I need to know since the new swords has 4 attack anims, can I just put:

Activity nHitActivity = ACT_VM_SLASH1A_HIT : ACT_VM_SLASH1B_HIT : ACT_VM_SLASH1C_HIT : ACT_VM_SLASH1D-HIT;

Will this work, or do I need to figure out something else?

Thanks in advance.
Who Me??? I am just nobody.
Baer
Forum Moderator
 
Posts: 18
Joined: Thu Nov 30, 2006 3:02 pm
Location: AR, USA

Postby steven_m64 » Wed Mar 07, 2007 8:25 pm

are you trying to have the attack animation be randomized?
(play a different attack animation randomly)

if so you can just specify in the models qc to use the same activity name for multiple animations and it will automatically randomly play one of the set of animations.

if your are situationally trying to trigger a specific animation its quite a bt different and "Activity nHitActivity = ACT_VM_SLASH1A_HIT : ACT_VM_SLASH1B_HIT : ACT_VM_SLASH1C_HIT : ACT_VM_SLASH1D-HIT;"
wont work.

code will have to be added to check what is happening and what animation will need to be played.
steven_m64
Retarded Coder
 
Posts: 25
Joined: Tue Nov 21, 2006 7:41 am

Postby Baer » Wed Mar 07, 2007 8:43 pm

For now yea they will be random. At a later date who knows. Later on he will get the activity name. For now I will use 1a.
Who Me??? I am just nobody.
Baer
Forum Moderator
 
Posts: 18
Joined: Thu Nov 30, 2006 3:02 pm
Location: AR, USA


Return to Unsorted Old Posts

Who is online

Users browsing this forum: No registered users and 1 guest

cron