DieHard Wolfers Forum Index DieHard Wolfers
A Wolfenstein 3d Fan Community


  Hosted by: MCS & Areyep.com - Designed by: BrotherTank

Original Yahoo Forum - Die Hard Archives

AReyeP HomepageAreyep Homepage DieHard Wolfenstein BunkerDieHard Wolfenstein Bunker Log inLog in RegisterRegister Banlist FAQFAQ Search ForumsSearch

  Username:    Password:      Remember me       

Interactive/Exit HUD animation
Page 1 of 1
DieHard Wolfers Forum Index -> Feature Fanatics View Previous TopicRefresh this PageAdd Topic to your Browser FavoritesSearch ForumsPrint this TopicE-mail TopicGoto Page BottomView Next Topic
Post new topicReply to topic
Author Message
doomjedi
DieHard Wolfer
DieHard Wolfer


Joined: 21 Jul 2006
Last Visit: 1:32 ago.

Topics: 105
Posts: 2784
Location: Israel
israel.gif

PostPosted: Sat Jan 05, 2008 12:53 am
   Subject: Interactive/Exit HUD animation
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Next PostGoto Bottom of Posts

Guys, can end level HUD-"weapon" animation, (like in Duke Nukem 3D) be implemented? I'll be most useful. Then he can interact with the exit texture (or even door or scenery object (giving him something) - to put a card, crystal...)

Using this I can even depict the player entering exit doors or certain areas in third person view, like in the end of wolf3d (but without changing the view angle).

All we have to do is to make another "melee/close range" weapon..so the only trick is to automatically "shoot/activate" that weapon (/hud animation) when interacting (using space) with particular texture...actually we can use such features inside levels to depict him entering teleports and such...tons of uses ...for interacting with different objects and using 3rd person view transitions.

Does anyone has an idea how to implement such?
the_fish
Bring 'em On
Bring 'em On


Joined: 18 Nov 2006
Last Visit: 07 Nov 2008

Topics: 12
Posts: 133
Location: England
uk.gif

PostPosted: Sat Jan 05, 2008 12:57 pm
   Subject: Interactive/Exit HUD animation
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

Mighty Foot? Cool

It might be better to divorce it completely from the weapon code, and do it entirely in the DrawPlayerWeapon function. Create a global int somewhere (possibly in gamestate, if you eventually want this to be not-entirely-cosmetic, such as the foot) controlling the frame (-1 = draw weapon as normal).

Then in PlayLoop, wait until n tics have elapsed and increment the frame if it isnt zero, and reset it to zero if it exceeds the last frame. Say, 5 frames (0,1,2,3,4):
::: CODE :::
//call this every 10 tics, say...
if (notaweapon_frame != -1)
{
    notaweapon_frame++;
    if (!(notaweapon_frame % 5)) notaweapon_frame = -1;
}


Then you can add as many different animation sequences (all 5 frames long) as you like, each controlled by setting notaweapon_frame to 0, 5, 10 etc, whenever you'd want to perform an action. You might want GunAttack to reset it to -1 also.

Just how I'd do it Smile
doomjedi
DieHard Wolfer
DieHard Wolfer


Joined: 21 Jul 2006
Last Visit: 1:32 ago.

Topics: 105
Posts: 2784
Location: Israel
israel.gif

PostPosted: Sat Jan 05, 2008 9:08 pm
   Subject: Re: Interactive/Exit HUD animation
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Bottom of Posts

Thanks. That's some useful info Smile
Display posts from previous:   
Post new topicReply to topic Time synchronized with the forum server time
DieHard Wolfers Forum Index -> Feature Fanatics View Previous TopicRefresh this PageAdd Topic to your Browser FavoritesSearch ForumsPrint this TopicE-mail TopicGoto Page TopView Next Topic
Page 1 of 1
Jump to:  

Related topics
 Topics   Replies   Views   Last Post 
No new posts WOLF4GW
Author: Tricob
110 29626 Thu Oct 08, 2015 9:17 am
Chris View latest post
No new posts "Awesomest Weapon" contest
Author: Dugtrio17
13 2719 Mon Aug 20, 2007 6:08 pm
Anonymous View latest post
No new posts Wolf3D and voxels
Author: Ripper
10 3087 Sat Mar 24, 2007 3:35 pm
Dugtrio17 View latest post
No new posts Ca-razy idea
Author: Thomas
6 1253 Sat Jun 03, 2006 11:26 am
lwmxynedtodth View latest post
No new posts cool Items and Objects in Wolfenstein
Author: andy3012
3 1343 Sun Nov 14, 2004 12:40 pm
Haasboy View latest post
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
   You cannot delete your posts in this forum
You cannot vote in polls in this forum


Copyright ©2003-2008 DieHard Wolfers
A Modified subBunker Theme by BrotherTank
Powered by phpBB © 2001, 2005 phpBB Group