PDA

View Full Version : Half Damage, Double Ammo


Kamex
March 13th, 2004, 07:46 PM
I want to make it so that the player takes half his normal damage and recieves twice the normal ammo from items on the ground. Can this be done with DEDs?

Tylenol
March 13th, 2004, 08:13 PM
Values ded for ammo. Alter Objects ded(I think) to alter damage done from enemies.
Good luck.

Kamex
March 13th, 2004, 08:55 PM
I got the ammo thing working :)

I cannot find the attack data, however. I noticed that enemies have "States" for different things, but I don't know how to modify these states.

Vermil
March 14th, 2004, 02:04 AM
In objects.ded you have to look for the projectiles rather than the thing that fires them to change the damage they do.

For instance BRUISERSHOT is the Barron/Hell Knights fireball.

You don't have to modify it's states, just find find it's stats, which looks like below. Then change the damage field.

Thing {
ID = "BRUISERSHOT";
DoomEd number = -1;
Spawn state = "BRBALL1";
See state = "NULL";
Pain state = "NULL";
Melee state = "NULL";
Missile state = "NULL";
Death state = "BRBALLX1";
Xdeath state = "NULL";
Raise state = "NULL";
See sound = "firsht";
Attack sound = "None";
Pain sound = "None";
Death sound = "firxpl";
Active sound = "None";
Reaction time = 8;
Spawn health = 1000;
Speed = 15;
Radius = 6;
Height = 8;
Mass = 100;
Damage = 8;
Flags = "mf_noblockmap mf_missile mf_dropoff mf_nogravity";
}

The damage number shown isn't the exact damage the projectile does rather the middle (or around about) of the range of damage it can do.

Also the damage of a bullet can't be changed.

Kamex
March 15th, 2004, 01:43 AM
It works! Thanks! :D