Archived copy of war3source.com, the War3Source forum (2009–2020), rebuilt from the Internet Archive by wc3mods.net. This page was captured on 2012-10-24 (original capture). Forum · All archived topics · Wiki · Bug tracker · Blog

War3:Source

War3Source Races => Races / Items - Submissions => Topic started by: -El Diablo on March 17, 2012, 08:27:42 AM



Title: [TF2][RACE]Guardian Angel
Post by: -El Diablo on March 17, 2012, 08:27:42 AM
Guardian Angel
TF2 only

This race is mainly for Pushing and Supporting teammates on the go.

// Sounds
new String:MadMilkSoundd[] = "war3source/waterdrop.wav";
new String:BlessingSoundd[] = "war3source/holygrail.wav";

The sound files will need to go into the war3source folder under your sounds directory.  If it does not exist, create a war3source folder.

Races Development Server location of sounds:

/75.102.39.34_port_27015/orangebox/tf/sound/war3source

Gives you an idea where sounds go if you don't know.

16 Total Levels

Race - Guardian Angel

<<UPDATED 3/24/2012 >>

1. Prayers Song
   - every 90/70/50/30 seconds = lowest HP player gets % of max health.

2. Wings of Glory
   - [+ability] Flying  for 2/3.5/4.5/6 seconds OR Gain Immunities instead of flying (Depends on Server Setup for each class)

3. Powerful Judgement
   - 4%/6%/8%/10% More Holy Damage per Level.

4. Lords Reward (ULTIMATE)
   - 225-375 radius deploys Mad Milk Effect for 2/4/6/8 seconds per Level.


About each skill:

Prayers Song -

* It plays the sound Holy Grail to the player whom it heals.
* It creates a stars around the player it heals (particle effects) which are attached to that player for a moment.
<<UPDATED>>
* Heals a player to war3_angel_healamount of maximum player health percentage.  Uses a float variable.  (0.0 - 1.0)  1.0 is equal to 100%
* Heals player only once no matter how many Guardian Angels are on the server, and waits for everyone on the server to get healed this same way.  After the last person on the server gains the benefit, it will reset and start over.
* The heal checks to see if the player is less than 30% of their max health and is the lowest player of this percentage before they receive Prayers Song.
*Admin can make changes to war3_angel_healamount on the dime without map changes.

command                           default
-------------------------------------------
SONG_HealAmountCvar          1.0

0.0 = 0% of max health
1.0 = 100% of max health



Wings of Glory -

* Fly mode is similar to noclip fly mode, except you can not travel thru walls or such.
* it teleports the player up and off the ground about 25 feet (which only feels like 5 feet) so that the player can fly easier.
* it has not spawn cooldown which you can use right away on spawn.
* its speed is maxspeed only during usage of wings of glory, because starting out flying is very slow if at normal speed.
* it has blue/red mix of particles of smoke that follows the player's feet while using wings of glory.
* it has a blue/red mix of teleport effects that follows the player's mid section.
* it has stars that are mixed around the player that follows the player has he or she moves around while using wings of glory.
<<NEW>>
* Player can be shot down while flying.
* Pressing the [+ability] a second time allows a player to quit flying.
* Speed has been slightly reduced.
* If a player class is not allowed to fly, they will receive immunites for skills/ultimates/slow/wards during same period of time as those classes that can fly.

You can setup who can fly or not by these variables:

command                            default
-----------------------------------------
war3angel_scout_nofly             0
war3angel_soldier_nofly           0
war3angel_pyro_nofly              0
war3angel_demoman_nofly      0
war3angel_heavy_nofly            1
war3angel_engineer_nofly        0
war3angel_medic_nofly            0
war3angel_sniper_nofly            1
war3angel_spy_nofly                1

1 is nofly and 0 flying is allowed



Powerful Judgement -

* 4%/6%/8%/10% More Holy Damage per Level.
<<FIXED>>
* No longer gives double score / double kill.



Lords Reward -

* THE ULTIMATE Lords Reward
* 225-375 radius deploys Mad Milk Effect for 4/6/8/10 seconds per Level
* It has a sound of the waterdrop on usage.
* It creates a explosive sound on usage.
* It has as a cooldown on spawn.
<<Updated>>
* Increased Mad Milk Effect by 2 seconds per level.




* CHANGE LOG

3/25/2012
* With help of Glider⠠⠵ -- Fixed error client index 0 in logs


Title: Re: [TF2][RACE]Guardian Angel
Post by: Ownz on March 17, 2012, 11:18:42 PM
sounds fun


Title: Re: [TF2][RACE]Guardian Angel
Post by: -El Diablo on March 18, 2012, 02:34:05 AM
A Possible update is scheduled for this addon.

I can only guess this should have been listed as a "preview" of this addon.  Nothing serious, just some annoyance issuses.  Everything works perfectly in this uploaded new race.

The update may include:

- Need to nerf the healing time interval of players
--- either give the player last healed a cooldown timer to prevent being healed twice in a row by 2 different Guardian Angels
--- if 60% or great health, don't heal.
--- may increase healing time per level

- Add a optional variable for server admins to prevent certain classes from flight mode and maybe change it to do something else for balance of the skills.

- press +ability again while flying to disable flight mode.

- If damaged while in flight mode, disable flight mode.


Overall this Race did prove to be very fun.   This race is much more fun than my first race Trillin!

After I make the improvements to this race, I'll start on a new race.   I'll probably put the next race I work on as a vote on the www.cgaclan.com/forums and/or if I can I'll also post a vote here, and I'll average up the vote between the two different web servers vote.


Title: Re: [TF2][RACE]Guardian Angel
Post by: Glider⠠⠵ on March 18, 2012, 06:11:59 AM
Why the CreateParticle method when the effects stock has stuff for that? What param are you missing in the stock ones?


Title: Re: [TF2][RACE]Guardian Angel
Post by: Ownz on March 18, 2012, 11:03:19 AM
you could give a constant heal to lowest hp member instead of a time heal to max hp


Title: Re: [TF2][RACE]Guardian Angel
Post by: -El Diablo on March 20, 2012, 05:02:41 PM
Why the CreateParticle method when the effects stock has stuff for that? What param are you missing in the stock ones?

Particle effects are pretty new to me, and I found it easiest to use something that someone has already created for particle effects.  There isn't a whole lot of documentation and I found this system easy to use.   If CreateParticle is taking too much processor time and I could use the effects stock... Then I'll do that, if it suits my purpose and intent of this race.


Title: Re: [TF2][RACE]Guardian Angel
Post by: -El Diablo on March 20, 2012, 05:08:02 PM
you could give a constant heal to lowest hp member instead of a time heal to max hp

What would you recommend the heal tick be?


Title: Re: [TF2][RACE]Guardian Angel
Post by: Ownz on March 21, 2012, 12:17:43 PM
3 at max level?


Title: Re: [TF2][RACE]Guardian Angel
Post by: Glider⠠⠵ on March 21, 2012, 01:27:10 PM
Why the CreateParticle method when the effects stock has stuff for that? What param are you missing in the stock ones?

Particle effects are pretty new to me, and I found it easiest to use something that someone has already created for particle effects.  There isn't a whole lot of documentation and I found this system easy to use.   If CreateParticle is taking too much processor time and I could use the effects stock... Then I'll do that, if it suits my purpose and intent of this race.


Well, my effect stocks are also free to use for anybody else :P. One quick thing I noticed about your stock is that it uses Timers to delete particles, this is unsafe and can generate errors (especially during mapchange). If written the stocks as an abstraction of things I do with particles in my races, but they might not be sufficient for fancier things other people do with particles, therefor I'd like people to use them and give me some feedback on what to improve.


Title: Re: [TF2][RACE]Guardian Angel
Post by: -El Diablo on March 24, 2012, 09:44:43 PM
Well, my effect stocks are also free to use for anybody else :P. One quick thing I noticed about your stock is that it uses Timers to delete particles, this is unsafe and can generate errors (especially during mapchange). If written the stocks as an abstraction of things I do with particles in my races, but they might not be sufficient for fancier things other people do with particles, therefor I'd like people to use them and give me some feedback on what to improve.

So, how can I enable particles to be on / off when needed without causing the problems you specify?

Also, where do I find your version of CreateParticle?  <<-- Is there a way to have this go away after a period of time without timers?


Title: Re: [TF2][RACE]Guardian Angel
Post by: Ownz on March 24, 2012, 10:15:15 PM
War3Source_Effects.inc

very nice stocks by glider


Title: Re: [TF2][RACE]Guardian Angel
Post by: Glider⠠⠵ on March 25, 2012, 04:37:12 AM
So, how can I enable particles to be on / off when needed without causing the problems you specify?

Also, where do I find your version of CreateParticle?  <<-- Is there a way to have this go away after a period of time without timers?

Quote from: War3Source_Effects.inc
stock ThrowAwayParticle(const String:effectName[], const Float:fPos[3], const Float:lifetime)
{   
   new particle = CreateW3SParticle(effectName, fPos);
   ModifyEntityAddDeathTimer(particle, lifetime);
   
   return particle;
}

// If you have an attachment point you can pass NULL_VECTOR to fPos
stock AttachParticle(const client, const String:effectName[], const Float:fPos[3], const String:attachTo[]="")
{   
   new particle = CreateW3SParticle(effectName, fPos);
   ModifyEntityAttach(particle, client, attachTo);
   
   return particle;
}

// If you have an attachment point you can pass NULL_VECTOR to fPos
stock AttachThrowAwayParticle(const client, const String:effectName[], const Float:fPos[3], const String:attachTo[], const Float:lifetime)
{   
   new particle = CreateW3SParticle(effectName, fPos);
   ModifyEntityAttach(particle, client, attachTo);
   ModifyEntityAddDeathTimer(particle, lifetime);
   
   return particle;
}

ThrowAwayParticle: A particle that is spawned at a specific position and killed after x seconds
AttachParticle: A particle that is spawned and attached to a entity
AttachThrowAwayParticle: A particle that is spawned, attached and killed after x seconds

For turning them on and off again you can either kill them and respawn them or use AcceptEntityInput(particle, "TurnOn"); (or TurnOff)


Title: Re: [TF2][RACE]Guardian Angel
Post by: -El Diablo on March 25, 2012, 04:58:30 AM

ThrowAwayParticle: A particle that is spawned at a specific position and killed after x seconds
AttachParticle: A particle that is spawned and attached to a entity
AttachThrowAwayParticle: A particle that is spawned, attached and killed after x seconds

For turning them on and off again you can either kill them and respawn them or use AcceptEntityInput(particle, "TurnOn"); (or TurnOff)

Other than the updated on everything but the particle system, I'll work to see if I can change my particle system to match the one that is included with War3source.   I hope i can, because I'm attaching to various points that are not "attachment" points per say.


Title: Re: [TF2][RACE]Guardian Angel
Post by: Glider⠠⠵ on March 25, 2012, 06:28:03 AM
If the stocks aren't suitable in their current form just add me on Steam and let me know what you need. They're still relatively new and I don't feel bad about changing the method signatures yet ;)