ZDaemon Forum Index ZDaemon
Client/Server DOOM
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Questions about DEHACKED/DEHSUPP

 
Post new topic   Reply to topic    ZDaemon Forum Index -> Wad Editing
View previous topic :: View next topic  
Author Message
Mr. Satan
has entered the game!


Joined: 30 Apr 2015

PostPosted: Mon Sep 12, 2016 2:13 am    Post subject: Questions about DEHACKED/DEHSUPP Reply with quote

Can you use DEHACKED/DEHSUPP to..
Modify the amount stimpack/medikits heal
Create custom healing items
Assign two or more actions to a single state as a code pointer.
Back to top
View user's profile Send private message
Sr69Mm-jC
Unstoppable!


Joined: 21 Jul 2011

PostPosted: Mon Sep 12, 2016 1:52 pm    Post subject: Re: Questions about DEHACKED/DEHSUPP Reply with quote

Mr. Satan wrote:
Can you use DEHACKED/DEHSUPP to..
Modify the amount stimpack/medikits heal
Create custom healing items

That's rather unlikely. However, you can assign CPA_ExecuteAlways to a frame or otherwise assign script execution on item pickup event. From there you can do essentially anything you want from the ACS level, such as healing amount depending on player's distance to some object or whatever really. You're going to have to acquire some ACS skills if you don't have them yet, but trust me they're oh so worth it if you're into ZDaemon modding.

Mr. Satan wrote:
Assign two or more actions to a single state as a code pointer.

Strictly speaking, you can't. However, you can simply set up a chain of several frames where all but the last one have 0 duration. They'll execute at once. It is a very commonly used trick and with the amount of unused extra frames provided by DEHSUPP you have all the freedom to abuse it.
Back to top
View user's profile Send private message
Mr. Satan
has entered the game!


Joined: 30 Apr 2015

PostPosted: Mon Sep 12, 2016 4:21 pm    Post subject: Reply with quote

I figured out how to modify the heal amount using ACS scripts.
This scripts makes the stimpack appear to heal you 20, medikit 50, health bonus 2, & armor bonus 2.

Code:

script 1 ENTER
{
   currenthealth = GetActorProperty(0,APROP_HEALTH);
   currentarmor = CheckInventory("Armor");
   delay(1);
   restart;
}
script 2 ENTER
{
   healedhealth = GetActorProperty(0,APROP_HEALTH);
   healedarmor = CheckInventory("Armor");
   if (healedhealth > currenthealth)
   {
     if (healedhealth == currenthealth + 10)
     {
      GiveInventory("Stimpack", 1);
      currenthealth = GetActorProperty(0,APROP_HEALTH);
      //SetActorProperty(0, APROP_HEALTH, currenthealth);
     }
     else if (healedhealth == currenthealth + 25)
     {
       GiveInventory("Medikit", 1);
      currenthealth = GetActorProperty(0,APROP_HEALTH);
     }
     else if (healedhealth == currenthealth + 1)
     {
       GiveInventory("HealthBonus", 1);
      currenthealth = GetActorProperty(0,APROP_HEALTH);
     }
   }
   if (healedarmor > currentarmor)
   {
     if (healedarmor == currentarmor + 1)
     {
       GiveInventory("ArmorBonus", 1);
       currentarmor = CheckInventory("Armor");
     }
   }
   delay(1);
   restart;
}

All this would be so much easier if we could use DECORATE.
Code:

ACTOR HealthBonus2 : HealthBonus replaces HealthBonus
{
  Inventory.Amount 2
}
ACTOR Medikit2 : Medikit replaces Medikit
{
  Inventory.Amount 50
}
ACTOR Stimpack2 : Stimpack replaces Stimpack
{
  Inventory.Amount 20
}
ACTOR ArmorBonus2 : ArmorBonus replaces ArmorBonus
{
  Armor.SaveAmount 2
}

Boom done.
Back to top
View user's profile Send private message
Aeyesx
Dominating!


Joined: 13 Oct 2012

PostPosted: Tue Sep 13, 2016 1:04 pm    Post subject: Reply with quote

Hey Mr. Satan

The DeHackEd + DehSUPP + ACS is a very powerfull combo and can do nearly anything Decorate can do... sure sometimes you have to use workarounds or similiar tricks. It reguires bunch of knowledge so its a little challenging because there are no tutorials yet.

True, this could be nice subject to change.
So far, ZDaemon won't support Decorate for a reasons,
I heard that the author is simply silly, and the other that we don't really needed... We do need something similiar -yes, zdaemon already has very extended dehacked possibilites...

Btw. Sr69Mm-jC u were not on irc recently, why is that?
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    ZDaemon Forum Index -> Wad Editing All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group