AEons of Death

Forum to the ZDoom Mod AEoD / AEons of Death by DBThanatos
 
HomeFAQSearchRegisterLog in
Latest topics
» super shotgun causes GZDoom to crash
Wed Nov 16, 2016 10:57 pm by Major Cooke

» Nothing visible
Fri Nov 11, 2016 10:27 am by Thefunny711

» [Fixed] Weapons no longer drop
Thu Nov 03, 2016 9:28 pm by Michaelis

» [Closed] v1.01.5 Not starting
Sat Oct 01, 2016 11:24 pm by Michaelis

» Read me. Unfixable bugs.
Sat Aug 06, 2016 6:40 pm by Major Cooke

» [Can't fix] Weapon Upgrade Menu does not freeze reloading.
Sat Aug 06, 2016 6:29 pm by Major Cooke

» Is it playable for d-touch
Tue Aug 02, 2016 8:15 pm by Michaelis

» [Fixed] a Bug and some of my thoughts
Mon Aug 01, 2016 3:20 am by DBThanatos

» About using stuff from the MOD
Fri Jul 29, 2016 11:14 am by Minuk

Search
 
 

Display results as :
 
Rechercher Advanced Search
Who is online?
In total there is 1 user online :: 0 Registered, 0 Hidden and 1 Guest :: 1 Bot

None

Most users ever online was 65 on Wed Nov 30, 2011 12:47 am

Share | 
 

  666.WAD

View previous topic View next topic Go down 
AuthorMessage
jd
Gibs and Guts
Gibs and Guts


Posts : 7
Join date : 2010-11-08

PostSubject: 666.WAD   Mon Nov 15, 2010 12:01 pm

as title says..

Code:


script 666 enter
{
   if (checkinventory("health") > 0 && checkinventory("health") < 100)
   {
      giveinventory("healthbonus",1);
      delay(17);
      restart;
      }
   else
      {
      delay(1);
      restart;
      }
}


will it work? Question

NOTE: i wrote this from scratch this is not affiliated in any way with aeod so if it makes your computer explode its your problem Very Happy

*EDIT* thanks DBT for the tip!

for fun i created a wad which incorporates infinite health, infinite blue armor protection,
instant ammo regeneration, all weapons, and the power of the superweapons8 dehacked.
tested works fine with utimate doom, doom2, final doom (tnt and plutonia)
should work fine with all wads that does not replace standard weapon actors

download link

Code:

http://www.mediafire.com/?vijkbou8t88rke3



Last edited by jd on Mon Nov 15, 2010 3:45 pm; edited 1 time in total
Back to top Go down
DBThanatos
Developer
Developer


Posts : 4018
Join date : 2008-09-03
Location : Beyond the unholy grave; Altering the future.

PostSubject: Re: 666.WAD   Mon Nov 15, 2010 1:19 pm

I dont think it will. Instead of "ChekInventory" try with GetActorProperty, and from there you can check health.

Also, I'd recommend to use "while" instead of "if". In that way you even save a couple lines

Should be something like

Code:
script 666 enter
{
  while(1)
  {
      while (GetActorProperty(0,APROP_Health)> 0 && GetActorProperty(0,APROP_Health) < 100)
      {
        giveinventory("healthbonus",1);
        delay(16);      //16 instead of 17 because is always going to wait one tic outside this "while"
      }
      delay(1);
  }
}

_________________

DBT AKA "Jesus the pimp" - Major Cooke
"02:37 p.m. - DBThanatos runs around like a little girl"
"Because now, all you see in AEoD was either ripped, processed and/or coded by the AEoD team (or direct contributions FOR AEoD). It might be a ripfest, but is OUR ripfest." -DBT about AEoD v6
"Seven sixteenths of one inch: That's the distance you'd have to move your pinky in order to not sound like an idiot." - maddox
"What I talk about is Doom, because in the end, Doom is all that counts." - Stephen King
"In offline gaming we trust" -DBT & MC


Spoiler:
 
Back to top Go down
 
666.WAD
View previous topic View next topic Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
AEons of Death :: Non AEoD related :: Off Topic Talk-
Jump to: