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       

[Info] Giving a Guard a Rocket Launcher
Page 1 of 1
DieHard Wolfers Forum Index -> Code Tutorials 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
Guest




Last Visit:





PostPosted: Wed Jan 21, 2004 5:35 pm
   Subject: [Info] Giving a Guard a Rocket Launcher
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Next PostGoto Bottom of Posts

Many Thanks for reading my help. On the Weapons of Vengeance, have a guard with a rocket. Someone can help me with this?
Chris
DieHard Wolfer
DieHard Wolfer


Joined: 11 Mar 2003
Last Visit: 23 Sep 2019

Topics: 57
Posts: 2239
Location: Canada
blank.gif

PostPosted: Wed Jan 21, 2004 6:14 pm
   Subject: Re: Guard with Rlauncher
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

Haha... sounds like fun. I just tried this now (without playing that demo you mentioned yet), and couldn't believe how easy this was! First, open WL_ACT2.C, and look for this line:

::: CODE :::
void   T_Shoot (objtype *ob);

Than under it, add this line:

::: CODE :::
void    T_GiftThrow (objtype *ob);

This makes it so the guard recognizes the Rocket action. Now, search for this line (in the same file):

::: CODE :::
statetype s_grdshoot2    = {false,SPR_GRD_SHOOT2,20,NULL,T_Shoot,&s_grdshoot3};

And change the T_Shoot section to T_GiftThrow, like this:

::: CODE :::
statetype s_grdshoot2    = {false,SPR_GRD_SHOOT2,20,NULL,T_GiftThrow,&s_grdshoot3};

That's it! As you might notice, T_GiftThrow is the code that the bosses on Episode 4 and 6 use to shoot their rockets. Since it's right near the bottom, I redeclared it to save time. Than I just plugged it into where the guard normally shoots - making him shoot rockets instead of bullets. Try it out, it's simple... and a blast playing with those newly powered guards! Smile
Guest




Last Visit:





PostPosted: Thu Jan 22, 2004 7:36 am
   Subject: Re: Guard with Rlauncher
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

Thanks Chris! This code is very good.
Guest




Last Visit:





PostPosted: Thu Jan 22, 2004 9:45 pm
   Subject: Re: Guard with Rlauncher
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

That's how I did it in Operation: Zeitgeist, too. You can do flamethrower guards and syringe throwing mad scientists in the same way.
Guest




Last Visit:





PostPosted: Fri Jan 23, 2004 1:58 pm
   Subject: Re: Guard with Rlauncher
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Bottom of Posts

Ok. Thanks Sun Ce!
Display posts from previous:   
Post new topicReply to topic Time synchronized with the forum server time
DieHard Wolfers Forum Index -> Code Tutorials 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 [Code] Gun Bobbing or Aminated Weapons - Dugtrio17
Author: Dugtrio17
5 5193 Tue May 06, 2008 10:53 am
Redeemer View latest post
No new posts [Code] Changing Weapons -CheckWeaponChange- BrotherTank
Author: BrotherTank
2 3685 Sun Oct 26, 2003 1:21 am
Guest View latest post
No new posts [Help] Different Enemy Dying Frames/Views
Author: Guest
7 609 Tue Jul 29, 2003 3:00 pm
Codetech84 View latest post
No new posts [Info] VL_FadeOut - Function Explanation
Author: TheTalentedMrLeo
1 1724 Sat May 03, 2003 2:36 pm
Codetech84 View latest post
No new posts [Info] Mirrored Images - walls that are reversed on one side
Author: Guest
4 297 Sat May 03, 2003 12:57 pm
jamez 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