Is it possible to track when a player deals damage (either via hit scan weapon or projectile) in ACS? I wanted to make a script that would activate after the player successfully damages a monster.
Bonus points if it tracks when he damages a monster and not himself!
Tracking when a player does damage
RE: Tracking when a player does damage
Im not sure, but try and make a new puff for your weapons, which got their own damagetype, after that you make a new pain state in the monsters, that activates what you want.
Im not sure about the bonus thing, go get a pro for that one
Im not sure about the bonus thing, go get a pro for that one
Combinebobnt wrote:i can see the forum league is taking off much better than the ctf ones
GalactusToday at 1:07 PM
are you getting uncomfortable jap
feeling something happen down there
RE: Tracking when a player does damage
Pain.Damagetypenamehere is the answer.
=== RAGNAROK DM ON ... uh... dead forever? ===
=== ALWAYS BET ON ... uh... dead forever? ===
=== Who wanta sum wang? ===
=== Death and Decay - A new Monster/Weapon replacer ===
=== ALWAYS BET ON ... uh... dead forever? ===
=== Who wanta sum wang? ===
=== Death and Decay - A new Monster/Weapon replacer ===
-
RobbyPants
- Posts: 37
- Joined: Wed Mar 13, 2013 12:53 am
RE: Tracking when a player does damage
(Sorry about the delayed reply)Ivan wrote: Pain.Damagetypenamehere is the answer.
So, the idea would be to give the player some unique damage types (both with melee attacks and their bullet puffs), and call the ACS in each monster's pain.type and death.type states? It's clunky, but it could work. I do have a question about explosions: how do I control these? I know I can give a rocket a custom damage type, but is there a way to tie it to explosions?
RE: Tracking when a player does damage
The damagetype usually applies both to the direct damage of a projectile and the explosion spawned by it after. Pretty easy to use actually.RobbyPants wrote:(Sorry about the delayed reply)Ivan wrote: Pain.Damagetypenamehere is the answer.
So, the idea would be to give the player some unique damage types (both with melee attacks and their bullet puffs), and call the ACS in each monster's pain.type and death.type states? It's clunky, but it could work. I do have a question about explosions: how do I control these? I know I can give a rocket a custom damage type, but is there a way to tie it to explosions?
=== RAGNAROK DM ON ... uh... dead forever? ===
=== ALWAYS BET ON ... uh... dead forever? ===
=== Who wanta sum wang? ===
=== Death and Decay - A new Monster/Weapon replacer ===
=== ALWAYS BET ON ... uh... dead forever? ===
=== Who wanta sum wang? ===
=== Death and Decay - A new Monster/Weapon replacer ===
RE: Tracking when a player does damage
Though if you really want to separate the two, just have the explosive thingy spawn a dummy actor that performs the actual explosion - with its own, separate damagetype.
[quote="Kennon Conrad"]Dear LawCounsels,
To prove your compressor works, I suggest you try it on your posts and then post only the result.
We all know an ideal lossy compressor would output 0 bytes for your posts, so see if you can beat that.
Have a nice day.[/quote]
To prove your compressor works, I suggest you try it on your posts and then post only the result.
We all know an ideal lossy compressor would output 0 bytes for your posts, so see if you can beat that.
Have a nice day.[/quote]