diff options
| author | Ritabrata Das <[email protected]> | 2025-02-19 22:42:23 +0530 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-02-19 22:42:23 +0530 |
| commit | 86cc54fd0cf49ce05191620798b566fa9c49ff94 (patch) | |
| tree | 0a5b09502d5f63c21e8b05921b4769c3b6a335cf /plugins/smoke_on_damage | |
| parent | 19a97cd1dcee60ab1b6a5871902e9f2590a8f73f (diff) | |
| parent | 2546a64a649464868bd1332d4308018c9beffb3b (diff) | |
Merge pull request #7 from the-indian-dev/dev
Add mid air refueling
Diffstat (limited to 'plugins/smoke_on_damage')
| -rw-r--r-- | plugins/smoke_on_damage/Plugin.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/smoke_on_damage/Plugin.py b/plugins/smoke_on_damage/Plugin.py index 08c184b..ed7fcf7 100644 --- a/plugins/smoke_on_damage/Plugin.py +++ b/plugins/smoke_on_damage/Plugin.py @@ -1,4 +1,4 @@ -"""TThis plugin will cause the aircraft to emit smoke if it's health is below a certain threshold. +"""This plugin will cause the aircraft to emit smoke if it's health is below a certain threshold. It is also an example of a plugin as a folder/module. This can be used as a basis for more complex plugins that may need multiple files.""" from lib.PacketManager.packets import FSNETCMD_AIRCMD, FSNETCMD_AIRPLANESTATE, FSNETCMD_TEXTMESSAGE @@ -38,7 +38,9 @@ class Plugin: message_to_client.append(FSNETCMD_AIRCMD.set_afterburner(player.aircraft.id, False, True)) - return False + return False + else: + return True def on_weapon_config(self, data, player, message_to_client, message_to_server): if ENABLED: |
