Gibs and Guts
Posts : 7
Join date : 2010-11-08
|Subject: 666.WAD Mon Nov 15, 2010 12:01 pm|| |
as title says..
script 666 enter
if (checkinventory("health") > 0 && checkinventory("health") < 100)
will it work?
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
*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
Last edited by jd on Mon Nov 15, 2010 3:45 pm; edited 1 time in total
Posts : 4018
Join date : 2008-09-03
Location : Beyond the unholy grave; Altering the future.
|Subject: 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
script 666 enter
while (GetActorProperty(0,APROP_Health)> 0 && GetActorProperty(0,APROP_Health) < 100)
delay(16); //16 instead of 17 because is always going to wait one tic outside this "while"
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