Forum Archive

Go Back   3D Realms Forums > 3D Realms Topics > Duke Nukem > Duke Nukem 3D Modifications
Blogs FAQ Members List Social Groups Calendar Mark Forums Read

Notices

 
 
Thread Tools
Old 04-09-2009, 04:31 PM   #1
cage

cage's Avatar
Creating new breakable wall textures
Just a quick question: how to make new breakable wall textures - like monitors etc. I've done it by checking the picnum of the wall that shotspark actor hit - it works but only for bullet weapons. Is there a way to make it work with all other projectiles and with hitradius?
cage is offline  
Old 04-09-2009, 05:45 PM   #2
Nimoy

Nimoy's Avatar
Re: Creating new breakable wall textures
I cant help you exactly, but there is code for this in Nuclear Showdown by James Stanfield (JBlade).
__________________
The feeling is definitely there. It's a new morning in America... fresh, vital. The old cynicism is gone. We have faith in our leaders. We're optimistic as to what becomes of it all. It really boils down to our ability to accept. We don't need pessimism. There are no limits. We dont just want to survive, we want to succeed. - President of the USA, "They Live"
Nimoy is offline  
Old 04-09-2009, 07:20 PM   #3
DeeperThought

DeeperThought's Avatar
Re: Creating new breakable wall textures
The ability to do that is a relatively recent addition to the scripting system. Try checking the htmovflag member of the projectile's sprite structure at the time of impact (in EVENT_KILLIT). Then you use bit manipulation on that member to determine whether the projectile hit something and get the wall ID if it was a wall.

If that's not clear, I can show you some code that does something similar.
__________________
DUKE PLUS
New map effects and various optional extras for Duke 3D.

DUKE NUKEM: ATTRITION
XP based weapon upgrades, progressive difficulty, and more.
DeeperThought is offline  
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 01:49 AM.

Page generated in 0.14317799 seconds (100.00% PHP - 0% MySQL) with 18 queries

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.

Website is 1987-2014 Apogee Software, Ltd.
Ideas and messages posted here become property of Apogee Software Ltd.