Page 1 of 1
CUSTOM WEAPONS: No elimination feed
Posted: 27 Aug 2015, 16:23
by Ozon
See this video.
http://youtu.be/peWClVad48Q
It's easier explained in moving picture =)
Anyway, would be awesome if we could get this one fixed soon, as it could play a big role in upcoming maps due to a tutorial by Domino54.
Cheers

Re: CUSTOM WEAPONS: No elimination feed
Posted: 28 Aug 2015, 12:08
by Dommy
Killfeed and +1 works only if action damage is handled by gamemode itself. To deal damage we got a special function:
Code: Select all
Void RemovePlayerArmor(CSmPlayer _Victim, Integer _Damage, CSmPlayer _Shooter, Integer _ShooterPoints)
_Victim - Player to deal damage.
_Damage - Amount of damage to deal (100 = 1 armor).
_Shooter - Player that used weapon.
_ShooterPoints - Number to display as +1, +2, etc.
The problem is we can't use this function inside action script, which forces us to remove armor "manually" (by removing number of armor directly in armor integer). This ofc has no killfeed notice and eliminations are displayed as environmental death.
---------------------------------
And for these using actions from my tutorial: better code for team modes (and FF fix):
Code: Select all
if (
Event.Player != Null && Event.Player != Owner &&
(Owner.CurrentClan == 0 || Event.Player.CurrentClan != Owner.CurrentClan)
) {
Event.Player.Armor -= Event.Damage;
}