Scags / TF2Classic-Tools

Basic tools for TF2Classic dedicated server development
7 stars 11 forks source link

fix TF2_IgnitePlayer #12

Closed IanE9 closed 3 years ago

IanE9 commented 3 years ago

Fixes #10

I've intentionally not committed the built plugin so that you might build it yourself instead to avoid security risks.

The primary problem was that the function is meant to be called on the player's shared state object, but the weapon parameter was also missing. The duration parameter has been omitted entirely as it appears TF2C does not provide one. Unfortunate!

The behavior of the standard extension is to pass the weapon parameter always as NULL, so I have replicated that behavior here.

Scags commented 3 years ago

Thanks.