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] Problem with Checkweaponchange function (wolf4sdl)
Page 1 of 1
DieHard Wolfers Forum Index -> SDL 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
Mortimer
Don't Hurt Me
Don't Hurt Me


Joined: 25 Oct 2007
Last Visit: 05 Dec 2017

Topics: 14
Posts: 51

poland.gif

PostPosted: Fri May 16, 2008 2:23 pm
   Subject: [Help] Problem with Checkweaponchange function (wolf4sdl)
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Next PostGoto Bottom of Posts

Hello again. I tried to add a new weapon to the game with a new ammunition type. Everything works well, but I don't know how to make the new weapon selectable. I tried to use the old new ammo tutorial but, using it, I can't select any other weapons anymore. I just would like to know how should I set this routine to make the weapon works with a new ammo type. Thanks in advance Cake
Ripper
Code Master - Developer
Code Master - Developer


Joined: 15 Mar 2003
Last Visit: 30 Sep 2008

Topics: 21
Posts: 527
Location: Germany
blank.gif

PostPosted: Fri May 16, 2008 2:49 pm
   Subject: Re: [Help] Problem with Checkweaponchange function (wolf4sdl)
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

Please provide a link to the tutorial.

_________________
Life is an awful game, but the graphics resolution rocks ;D
Mortimer
Don't Hurt Me
Don't Hurt Me


Joined: 25 Oct 2007
Last Visit: 05 Dec 2017

Topics: 14
Posts: 51

poland.gif

PostPosted: Fri May 16, 2008 4:08 pm
   Subject: [hălp] Problem with Checkweaponchange function (wolf4sdl)
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

I used Dome's weapon tutorial, at http://www.wolfenstein3d.co.uk/coding-addweapon.htm. Sorry, I think I made myself a bit confused. The new ammo is working perfectly with the new weapon, I just need to know how to make it selectable during gameplay.
Ripper
Code Master - Developer
Code Master - Developer


Joined: 15 Mar 2003
Last Visit: 30 Sep 2008

Topics: 21
Posts: 527
Location: Germany
blank.gif

PostPosted: Sat May 17, 2008 9:06 am
   Subject: Re: [Help] Problem with Checkweaponchange function (wolf4sdl)
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

The tutorial works with integer constants instead of symbolic constants, so it needs some adjustment:
Replace each case label "case <n>:" in the new CheckWeaponChange by "case sc_<n-1>:" (e.g. "case 2:" by "case sc_1:").

But I would suggest adding a new button definition in wl_def.h directly after bt_readychaingun and an according entry in the buttonscan array in wl_play.cpp instead of replacing CheckWeaponChange.

_________________
Life is an awful game, but the graphics resolution rocks ;D
Mortimer
Don't Hurt Me
Don't Hurt Me


Joined: 25 Oct 2007
Last Visit: 05 Dec 2017

Topics: 14
Posts: 51

poland.gif

PostPosted: Sat May 17, 2008 11:26 am
   Subject: [hălp] Problem with Checkweaponchange function (wolf4sdl)
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Bottom of Posts

Thanks for helping again man. Ej, I noticed one more thing. After the code is compiled for the first time, the "can I play daddy?" graphic gets screwed at "how tough are you" screen.
Display posts from previous:   
Post new topicReply to topic Time synchronized with the forum server time
DieHard Wolfers Forum Index -> SDL 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 Announcement: Wolf4SDL released
Author: Ripper
522 155111 Mon May 22, 2017 2:04 pm
Tricob View latest post
No new posts [help] Adding teleporters in wolf4sdl
Author: Mortimer
35 7362 Fri May 26, 2017 8:19 am
Military View latest post
No new posts [WOLF4SDL Help] Blake Stone Style doors
Author: Haasboy
3 2196 Sun Jul 20, 2008 7:56 am
Haasboy View latest post
No new posts [Wolf4SDL Help] Inserting a second palette (like in SoD)
Author: Andy_Nonymous
10 2403 Mon Jun 02, 2008 3:59 pm
Adam Biser View latest post
No new posts [help] Wolf4sdl's implemented tutorials
Author: Mortimer
6 2480 Tue May 06, 2008 1:15 pm
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