Sarge
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 > Classic Doom > Doom Editing > Disabling running when health reaches critical levels
 
Author
All times are GMT. The time now is 16:06. Post New Thread    Post A Reply
Platinum Shell
Junior Member


Posts: 186
Registered: 08-11


*EDIT*: Disregard this opening post and some posts below it, those are pertaining to changing the turbo level (old idea), it's now disabling run.*EDIT*

I'm wondering if it's possible to make a lump entry or whatever the basic marker is called in Slade and make a new entry in a Pwad that changes the turbo level to 65 when health reaches 25 units or lower. It also needs to go back to the default 100 should the player's health raise to 26% or above.


Thank you for your help! It will add much depth to the style of maps I'm developing.

Last edited by Platinum Shell on 12-26-11 at 23:58

Old Post 12-22-11 00:52 #
Platinum Shell is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
DuckReconMajor
Forum Spammer


Posts: 3833
Registered: 01-09


Can you use ACS? If so, you could do a script to check the player's health every so often and if it is below a certain level do ConsoleCommand("turbo 65")

Old Post 12-22-11 02:08 #
DuckReconMajor is online now Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Platinum Shell
Junior Member


Posts: 186
Registered: 08-11


Reading the begginer's guide now, I'd like to learn more about this sort of thing. Will probably be a while before I learn how to do it, I'm better at audio tutorials.

Well, I'll read up, so far I know every script must be from 1-999, and they have certain types and such.

EDIT: I found this bit that seems to specify 25% and less health! I wonder if I could use this? And if so, how to add the reverse function to it; checking if it's 26% or above.

code:
script 1 (int tid) { if (GetActorProperty (tid, APROP_Health) <= 25) print (s:"Thing ", d:tid, " has less than 26 health!!");

Old Post 12-22-11 02:46 #
Platinum Shell is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
DuckReconMajor
Forum Spammer


Posts: 3833
Registered: 01-09


That's where it would get a bit tricky. You wold need to do the turbo command if the health is checked and it is below 25. But when your script checks again if you are still below 25 you wouldn't want to do turbo command again, which would slow the game down and annoy the player with constant turbo messages. You'd need something like this:

code:
// declare these at the beginning of your script bool healthAbove = true; // assuming you are running this script at the beginning of the level and player health is above 25, // might be a problem if not the first level might want to give player more than 25 health bool healthBelow = false; // here is where your loop starts if(GetActorProperty (tid, APROP_Health) <= 25) { healthAbove = false; if(!healthBelow) // only do this if healthBelow is false { ConsoleCommand ("turbo 65") healthBelow = true; } } else // health is not less than 25 { healthBelow = false; if(!healthAbove) { ConsoleCommand ("turbo 100") healthAbove = true; } }


There's probably a lot wrong with the above code (I don't remember a lot of the ACS specifics) but I think that's the basic sequence of events.

Also I'm still not sure how to do something that loops continuously in ACS though other than a while(true) loop, which runs continously and slows the game down.

Old Post 12-22-11 03:16 #
DuckReconMajor is online now Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
shadow1013
Junior Member


Posts: 228
Registered: 08-10


Strife had that effect... Maybe the Zdoom support for strife can shed some light for you

Old Post 12-22-11 04:30 #
shadow1013 is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
printz
CRAZY DUMB ZEALOT


Posts: 6838
Registered: 06-06


In before Gez.

Just use DECORATE for that feature that is supported by ZDoom. See how to create player classes, the PlayerPawn. Specifically, it's the Player.RunHealth that specifies the hitpoints where you'll only walk instead of running.

Old Post 12-22-11 08:32 #
printz is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
DuckReconMajor
Forum Spammer


Posts: 3833
Registered: 01-09


Heh, I always forget how much DECORATE can do. Excuse my mess.

Old Post 12-22-11 17:21 #
DuckReconMajor is online now Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Platinum Shell
Junior Member


Posts: 186
Registered: 08-11


Would it be easier to make a script that disables running when health reaches 25% or below? It seems to me it would. And it would probably work better and cleaner.

Old Post 12-26-11 23:59 #
Platinum Shell is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
tempun
Member


Posts: 447
Registered: 08-09



Platinum Shell said:
And it would probably work better and cleaner.
no

Old Post 12-27-11 07:28 #
tempun is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
DuckReconMajor
Forum Spammer


Posts: 3833
Registered: 01-09


Yeah DECORATE is definitely your best bet.

Old Post 12-27-11 16:24 #
DuckReconMajor is online now Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
40oz
And who knows, maybe I'm wrong. But that's extremely unlikely because I'm always right.


Posts: 5060
Registered: 08-07


I actually found that in situations where your health was initially high and then became critical, you're going to neeed all the high speed running you can get.

Old Post 12-28-11 17:21 #
40oz is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Gez
Why don't I have a custom title by now?!


Posts: 7036
Registered: 07-07


Yeah, I'd rather see an "adrenaline surge" system that gives you a slight boost when critical over Strife's crippling system.

I don't care much about considerations of realism. It's a game, and games where the more you lose (low health), the more you lose (less maneuverability) are not fun. If anything, it encourages cheating or save-scumming just to avoid the hindrance.

Old Post 12-28-11 17:44 #
Gez is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Platinum Shell
Junior Member


Posts: 186
Registered: 08-11



40oz said:
I actually found that in situations where your health was initially high and then became critical, you're going to neeed all the high speed running you can get.


I guess we look at it both ways, while I like your idea, being able to run indefinitely while crippled though wouldn't really be fair, and it could be abused. But making it have a timer for the speed boost? Definitely. Good idea there, man.

But I guess now that I look at it maybe it shouldn't be speed per-say, but more of like impaired movement; yanks to the left and right and such, you can't move as swiftly and directly when half of your body is riddled with bullet holes, scratched off from numerous demon claws, and burnt to a crisp by a variety of fireballs.

Old Post 12-31-11 10:14 #
Platinum Shell is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
printz
CRAZY DUMB ZEALOT


Posts: 6838
Registered: 06-06


Actually 40oz's suggestion sounds better, because it puts you into choosing whether to be safe and healthy, or injured and powerful.

Old Post 12-31-11 12:11 #
printz is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Platinum Shell
Junior Member


Posts: 186
Registered: 08-11



printz said:
Actually 40oz's suggestion sounds better, because it puts you into choosing whether to be safe and healthy, or injured and powerful.


Compared to what? My most recent comment or the original?

Old Post 12-31-11 12:18 #
Platinum Shell is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
40oz
And who knows, maybe I'm wrong. But that's extremely unlikely because I'm always right.


Posts: 5060
Registered: 08-07


I wasn't making the suggestion that the player should be faster when damaged, I just want Platinum Shell to know that speed is a very sensitive factor in Doom's element of fun. Especially regarding monsters such as the chaingunner or archvile, where escaping their attacks is dependent on how quickly you can get out of their visual range. A chaingunner quickly draining your health is also going to make you slower, which in turn gives him more time to shoot you? Please don't do that. I can also expect the extreme frustration of trying to dodge a revenant's homing missiles or Mancubus fireballs with sudden changes in the player's speed. I appreciate you experimenting with cool and new stuff but I think you're better off leaving the player's speed alone in any of your releases.

Old Post 12-31-11 17:55 #
40oz is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Xaser
Senior Member


Posts: 1628
Registered: 07-03


RE: Topic -- Don't do this. There is no need to cripple the player when he/she is already badly hurt. Low health is already enough of a punishment, period. Though "realistic", disabling running at critical health is not fun in the slightest. In fact, whatever health level you set as the "critical" level is effectively treated as "death" to me. If I reach it and can no longer move like Doom intended, then I will either immediately load an older save, cheat, or quit and modify the wad to fix the problem. :P

40oz/Gez's suggestion, on the other hand, does sound fun if pulled off right.

Old Post 12-31-11 20:48 #
Xaser is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Platinum Shell
Junior Member


Posts: 186
Registered: 08-11


Well yeah, that was what I was getting at. But it shouldn't be available the whole time when you reach critical levels. A timer set that lets you move faster for a fixed amount of time when you reach that level would be fine, so you get up out of there and find some health. DooMguy would be slower than normal when in a non-critical state. But to make him run indefinitely when he's near-death? No. For a decent amount of time when critical? Yes.

Old Post 01-01-12 00:05 #
Platinum Shell is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
All times are GMT. The time now is 16:06. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > Disabling running when health reaches critical levels

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.

Forums Directory