PDA

View Full Version : Ded problems :(


primus1236
November 27th, 2004, 09:06 PM
I'm not sure if this belongs here or in tech support, so if it belongs there could a mod please move it? Thanks :)

Anyway, I'm trying to modify the way the plasma gun fires and to do so, I have to copy the state definition for plasma1 from objects .ded into values.ded (where i'm doing most of the work) so that I can change the action for the plasma gun (I think). I have this...
State {
ID = "PLASMA1";
Sprite = "PLSG";
Frame = 0;
Tics = 3;
Action = "A_FirePistol";
Next state = "PLASMA2";
}
In values.ded, it's above the Values{ part of the file, but when that's in there, and the atk is set to PLASMA1, I can't get the plasma gun. Whenever I hit 6, I just keep whatever weapon I've currently got. I can't figure out why it's doing that. So, to quote monty python... "Anything you can do to help, would be very...Helpful" :p

Thanks :)

Chilvence
November 27th, 2004, 09:27 PM
Is there anything else you've changed? It doesnt seem to make any sense. If you've made any changes to the weapons block in values.ded, can you post them?

primus1236
November 27th, 2004, 09:43 PM
This is everything, excluding most of the commented out heading explaning how to do values ded stuff

# An example:
#
# Values {
# Patch Replacement {
# M_DOOM = "{R=.5; G=1; B=.5; scale=3}G{scale=2;y=10}ONE {
# scale=3;y=0}F{ scale = 2; y = 10 }I{break}SHING";
# };
# }

State {
ID = "PLASMA1";
Sprite = "PLSG";
Frame = 0;
Tics = 3;
Action = "A_FirePistol";
Next state = "PLASMA2";
}

Values {
Player {
Health = "100"; # Initial health.
Max health = "100"; # Maximum health.
Health limit = "200"; # Absolute health limit.
Green armor = "100";
Blue armor = "200";
Max ammo {
Clip = "200";
Shell = "50";
Cell = "300";
Misl = "50";
};
Clip ammo {
Clip = "10";
Shell = "4";
Cell = "20";
Misl = "1";
};
};

# Weapon Info|*|Static defaults to "0".
# "1" will prevent the lowering of the HUD weapon when doing a switch.



Weapon Info {
0 {
Type = "noammo";
Up = "PUNCHUP";
Down = "PUNCHDOWN";
Ready = "PUNCH";
Atk = "PUNCH1";
Flash = "NULL";
};
1 {
Type = "clip";
Per shot = "1";
Up = "PISTOLUP";
Down = "PISTOLDOWN";
Ready = "PISTOL";
Atk = "PISTOL1";
Flash = "PISTOLFLASH";
};
2 {
Type = "shell";
Per shot = "1";
Up = "SGUNUP";
Down = "SGUNDOWN";
Ready = "SGUN";
Atk = "SGUN1";
Flash = "SGUNFLASH1";
};
3 {
Type = "clip";
Per shot = "1";
Up = "CHAINUP";
Down = "CHAINDOWN";
Ready = "CHAIN";
Atk = "CHAIN1";
Flash = "CHAINFLASH1";
};
4 {
Type = "misl";
Per shot = "1";
Up = "MISSILEUP";
Down = "MISSILEDOWN";
Ready = "MISSILE";
Atk = "MISSILE1";
Flash = "MISSILEFLASH1";
};
5 {
Type = "cell";
Per shot = "100";
Up = "PLASMAUP";
Down = "PLASMADOWN";
Ready = "PLASMA";
Atk = "PLASMA1";
Flash = "PLASMAFLASH1";
};
6 {
Type = "cell";
Per shot = "40";
Up = "BFGUP";
Down = "BFGDOWN";
Ready = "BFG";
Atk = "BFG1";
Flash = "BFGFLASH1";
};
7 {
Type = "noammo";
Up = "SAWUP";
Down = "SAWDOWN";
Ready = "SAW";
Atk = "SAW1";
Flash = "NULL";
};
8 {
Type = "shell";
Per shot = "2";
Up = "DSGUNUP";
Down = "DSGUNDOWN";
Ready = "DSGUN";
Atk = "DSGUN1";
Flash = "DSGUNFLASH1";
};
};
}

Chilvence
November 27th, 2004, 10:15 PM
I'm not really sure why, but I was able to switch to the plasma rifle and fire 3 shots when I used that ded. You are editing the right stuff to change the plasma firing sequence. The only thing I can think of is maybe youve been trying to switch to it with less than 100 cells in your stash, since Doom wont allow that. Try changing the ammo per shot amount?

primus1236
November 30th, 2004, 12:57 PM
Apperantly it wasn't the ded. After testing many other ways, I disabled it, and I still cannot get the plasma gun to come up :(

By the way when you say 3 shots, you mean 3 pistol shots right?

Edit: Whoops *uhh* I realized the error I made. I had accidentally bound the key for #6 with an action aside from raising the plasmagun.