Doom Marine
Register | User Profile | Member List | F.A.Q | Privacy Policy | New Blog | Search Forums | Forums Home
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Special Interest > Eternity > [feature suggestion / code submission] A_Explode with damage argument
 
Author
All times are GMT. The time now is 10:36. Post New Thread    Post A Reply
printz
CRAZY DUMB ZEALOT


Posts: 8890
Registered: 06-06


I'm posting this very simple patch that makes A_Explode take the damage and distance data from args[0] if nonzero (defaulting to 128 otherwise). I'm doing this because A_Detonate uses the missile damage, which is impractical if you want to make custom-sized rockets.

If later the developers' intention is to make radius and damage separate, then args[1] will be usable as radius and be backward compatible: if args[1] is 0.0, then radius will be args[0] (like in this patch). If not, then it will be the value given in args[1].

Here's the SVN patch: http://www.mediafire.com/?v6ogln46p616z5c

Here's an example wad dependent on this patch with plasma dealing 20 radius damage on impact while still having 5 missile damage: http://www.mediafire.com/?fj73cf4c81mlbht

NOTE: I haven't done the same patch on A_NailBomb because I wouldn't want to interfere if there are plans to make the number of nails and their damage customizable first.

__________________
Automatic Wolfenstein - Version 1.0 - also on Android

Last edited by printz on 03-04-12 at 19:04

Old Post 03-04-12 18:49 #
printz is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit || Quote
All times are GMT. The time now is 10:36. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Special Interest > Eternity > [feature suggestion / code submission] A_Explode with damage argument

Show Printable Version | Email this Page | Subscribe to this Thread

 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are OFF
[IMG] code is ON
 

< Contact Us - Doomworld >

Powered by: vBulletin Version 2.2.5
Copyright ©2000, 2001, Jelsoft Enterprises Limited.