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       

[help] Adding ANOTHER enemy & other things
Page 1 of 1
DieHard Wolfers Forum Index -> Code Crackers 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
lucky_foot
Don't Hurt Me
Don't Hurt Me


Joined: 05 Nov 2004
Last Visit: 19 Sep 2010

Topics: 13
Posts: 69
Location: Pennsylvania
usa.gif

PostPosted: Tue Apr 26, 2005 7:48 am
   Subject: [help] Adding ANOTHER enemy & other things
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Next PostGoto Bottom of Posts

Okay,

I've got a question for you all. I was wondering how I would do this next part. With the Coding tutorial on adding a new enemy, I used it and have successfully added a new badguy to my TC. I was wondering if it was possible for me to put ANOTHER one also. I can see how you would do it with following the direction again and placing the entries below the other bad guy, but I'm lost with the Case functions. Do I just paste the same function in and changing the Case numbers so they continue consecutively?

Also, Does anyone know how I can add more walls in to my TC? I have the standard Registered wolf3d amount and I want to add a couple more. I can't find a tutorial to explain it. Very Happy

Thanks. Smile

_________________
JonathanS
Lucky foot Productions

www.luckyfootproductions.jtworld.net
Haasboy
DieHard Officer
DieHard Officer


Joined: 23 Jul 2003
Last Visit: 16 Oct 2019

Topics: 58
Posts: 581
Location: South Africa, Johannesburg
southafrica.gif

PostPosted: Tue Apr 26, 2005 10:27 am
   Subject: Re: [help] Adding ANOTHER enemy & other things
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

lucky_foot wrote:
Do I just paste the same function in and changing the Case numbers so they continue consecutively?

Yip... that's exactly what you would do.

lucky_foot wrote:
Also, Does anyone know how I can add more walls in to my TC? I have the standard Registered wolf3d amount and I want to add a couple more. I can't find a tutorial to explain it.

Actually there's three tutorials that allow you to have more than orginal amount. All of them are found in the Code Tutorials section:
1- WSJ 64+ code (It allows you to have the original 64 walls + another 64 walls with the use of an object modifier);
2- Chris's code (Allows you to have to up 190 walls);
3- And BrotherTank's code (Allows you to add a couple extra walls, with a few drawbacks).

I hope that helps you....

_________________
Haasboy Engine - Currently under construction (To be used with future mods - F.A.D.E.D. - Mansion X - Rising Evil Series)
Guest




Last Visit:





PostPosted: Tue Apr 26, 2005 11:27 am
   Subject: Re: [help] Adding ANOTHER enemy & other things
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

Lucky foot. Here are a few things you should know when adding your second enemy:
1. Remember the mapedit definitions
2. When you write the cases you will find that in the middle of them you will find things Like
SpawnPatrol(en_yourenemy,x,y,tile-264) and SpawnStand(en_yourenemy,x,y,tile-260)
Where you see those number 264 and 260 must change with the cases.
In the original tutorial you will find at the last cases:
::: CODE :::

case 280:
   case 281:
   case 282:
   case 283:
    if (gamestate.difficulty<gd_hard)
     break;
    tile -= 8;
   case 272:
   case 273:
   case 274:
   case 275:
    if (gamestate.difficulty<gd_medium)
     break;
    tile -= 8;
   case 264:
   case 265:
   case 266:
   case 267:
    SpawnPatrol(en_space,x,y,tile-264);
    break;

The green number must alway be equal to the red one in all the set of cases or the enemies directions will be all messed up.
lucky_foot
Don't Hurt Me
Don't Hurt Me


Joined: 05 Nov 2004
Last Visit: 19 Sep 2010

Topics: 13
Posts: 69
Location: Pennsylvania
usa.gif

PostPosted: Tue Apr 26, 2005 5:39 pm
   Subject: Re: [help] Adding ANOTHER enemy & other things
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Bottom of Posts

Thanks guys. Smile

I'll make a note and watch out for those things. Smile My only concern is that annoying "Abnormal Program Termination". I took every percaution I could (The ID files and the useless cheats), but the code is still loaded with other stuff I'm going to use. Smile

Thanks for all your help. Smile

_________________
JonathanS
Lucky foot Productions

www.luckyfootproductions.jtworld.net
Display posts from previous:   
Post new topicReply to topic Time synchronized with the forum server time
DieHard Wolfers Forum Index -> Code Crackers 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 Sticky: [Info] Help for newbie coders! C++ Tutorial
Author: Dugtrio17
20 11341 Sun Jan 10, 2010 12:26 pm
Fragstein3D View latest post
No new posts [Help] Setting RocketLauncher: Explosive Range...?
Author: KyleRTCW
17 7374 Thu Jun 03, 2004 3:21 am
Codetech84 View latest post
No new posts [Help] Berserk mode
Author: wolf3dbreaker
2 2499 Tue Feb 03, 2004 11:01 pm
Xarkon View latest post
No new posts [Info] Silent Gun? - Adding a Silencer
Author: Guest
4 194 Fri Apr 18, 2003 8:34 am
BrotherTank View latest post
No new posts [Info] Adding Locked Doors
Author: Guest
3 244 Thu Apr 17, 2003 6:30 am
Ripper 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