Hexen's DECORATE!
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Hexen's DECORATE!
I was looking for that weapon 3 of the Cleric on ZDoom wiki and i doesn't found!
I've tryed in zdoom.pk3 file and nothing!
Somebody can tell me where can i find that script?
Thanks!
I've tryed in zdoom.pk3 file and nothing!
Somebody can tell me where can i find that script?
Thanks!
This is the code for the player:
And this is the code for a monster:
Code: Select all
void A_CHolyAttack (AActor *actor)
{
player_t *player;
if (NULL == (player = actor->player))
{
return;
}
ACWeapWraithverge *weapon = static_cast<ACWeapWraithverge> (actor->player->ReadyWeapon);
if (weapon != NULL)
{
if (!weapon->DepleteAmmo (weapon->bAltFire))
return;
}
AActor * missile = P_SpawnPlayerMissile (actor, RUNTIME_CLASS(AHolyMissile));
if (missile != NULL) missile->tracer = linetarget;
weapon->CHolyCount = 3;
S_Sound (actor, CHAN_WEAPON, "HolySymbolFire", 1, ATTN_NORM);
}Code: Select all
void A_CHolyAttack3 (AActor *actor)
{
AActor * missile = P_SpawnMissileZ (actor, actor->z + 40*FRACUNIT, actor->target, RUNTIME_CLASS(AHolyMissile));
if (missile != NULL) missile->tracer = NULL; // No initial target
S_Sound (actor, CHAN_WEAPON, "HolySymbolFire", 1, ATTN_NORM);
}Oh, right. Here it is, very easy to replicate:
Code: Select all
void A_CFlameAttack (AActor *actor)
{
player_t *player;
if (NULL == (player = actor->player))
{
return;
}
AWeapon *weapon = actor->player->ReadyWeapon;
if (weapon != NULL)
{
if (!weapon->DepleteAmmo (weapon->bAltFire))
return;
}
P_SpawnPlayerMissile (actor, RUNTIME_CLASS(ACFlameMissile));
S_Sound (actor, CHAN_WEAPON, "ClericFlameFire", 1, ATTN_NORM);
}- Ryan Cordell
- Posts: 4349
- Joined: Sun Feb 06, 2005 6:39 am
- Preferred Pronouns: No Preference
- Operating System Version (Optional): Windows 10
- Graphics Processor: nVidia (Modern GZDoom)
- Location: Capital of Explodistan
- DoomRater
- Posts: 8270
- Joined: Wed Jul 28, 2004 8:21 am
- Preferred Pronouns: He/Him
- Location: WATR HQ
- Contact:
Okay, for those who don't know what to look for: the codepointer for the weapon would be A_CFlameAttack. I doubt you can call that in this version of DECORATE, so instead fire the projectile (corrected, see below) CFLameMissile or perhaps a missile that inherits from it?
Last edited by DoomRater on Sat Nov 18, 2006 4:33 pm, edited 1 time in total.
- Ryan Cordell
- Posts: 4349
- Joined: Sun Feb 06, 2005 6:39 am
- Preferred Pronouns: No Preference
- Operating System Version (Optional): Windows 10
- Graphics Processor: nVidia (Modern GZDoom)
- Location: Capital of Explodistan
