CUSTOM WEAPONS: No elimination feed

Moderators: w1lla, NADEO

Post Reply
User avatar
Ozon
Posts: 969
Joined: 24 Aug 2011, 13:12
Contact:

CUSTOM WEAPONS: No elimination feed

Post by Ozon » 27 Aug 2015, 16:23

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 :yes:
Image
ManiaExchange Lead Developer, video person and experienced project organizer.
Discord: Ozon#0359 · MX · Adventcalendar resources · TM-Tube is back

User avatar
Dommy
Translator
Translator
Posts: 1883
Joined: 25 Aug 2011, 21:45
Location: Poland
Contact:

Re: CUSTOM WEAPONS: No elimination feed

Post by Dommy » 28 Aug 2015, 12:08

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;
}
Ryzen 7 2700X, GTX 1070 Ti, 16 GB RAM, Windows 10 Insider Build
FORUM MODERATOR • CREATOR OF SHOOTMANIA GALAXY & TRACKMANIA² PURSUIT

Contact me via GALAXY & PURSUIT DISCORD

Post Reply

Return to “Shootmania Reports”

Who is online

Users browsing this forum: No registered users and 0 guests