Forums » Community Projects
Hostile Alert Plugin
I've downloaded most of the plugins and have looked over the Lua. I've scripted before, but it's taking me some time to understand the lua syntax.
Maybe what I'm trying to do here is already available, and if not, I just have a few questions.
Project Scope: An alert (simple ping sound) will go off in three second intervals when a hostile ship (pvp or pve) is in the current sector.
Simple Usage: /hostilealert [on|off]\t- turns off Hostile Alert.
What event types would I be accessing to pull in the current data of ships in the sector. I am referencing some of the targetless script to assess hostile information.
For the ping sound, I'm sure there is already an appropriate clip in the game already. How would I access the clip I need with the gksound.GKPlaySound command? I'm not sure if there is a list available or not.
Thanks
Maybe what I'm trying to do here is already available, and if not, I just have a few questions.
Project Scope: An alert (simple ping sound) will go off in three second intervals when a hostile ship (pvp or pve) is in the current sector.
Simple Usage: /hostilealert [on|off]\t- turns off Hostile Alert.
What event types would I be accessing to pull in the current data of ships in the sector. I am referencing some of the targetless script to assess hostile information.
For the ping sound, I'm sure there is already an appropriate clip in the game already. How would I access the clip I need with the gksound.GKPlaySound command? I'm not sure if there is a list available or not.
Thanks
Look at AlertMachine, which is part of TCS, it prints notifications when players enter the sector.
You'll likely want to use PLAYER_LEFT_SECTOR, PLAYER_ENTERED_SECTOR events, they are i think triggered for npc's too. (tho i may have wrong events, not quite sure, you'll have to test it out)
List of known soundeffects is here:
http://www.vo-wiki.com/racecar/index.php/Soundeffect
or you can use any .wav or .ogg file.
Beeping might get real annoying real fast tho.
You'll likely want to use PLAYER_LEFT_SECTOR, PLAYER_ENTERED_SECTOR events, they are i think triggered for npc's too. (tho i may have wrong events, not quite sure, you'll have to test it out)
List of known soundeffects is here:
http://www.vo-wiki.com/racecar/index.php/Soundeffect
or you can use any .wav or .ogg file.
Beeping might get real annoying real fast tho.
I was thinking something more along the lines of a submarine sonar ping. It would be nice to turn it on when I'm away from the console, reading logs or something.
Thanks for the info though. I'll play around with this.
Thanks for the info though. I'll play around with this.
Sonar Alert
Read a novel while you mine.
Since there were already other good plugins to identify new incoming vessels - and since this is my first lua plugin - this plugin just notifies you when a new ship has entered the sector. You will hear a ping sound (taken from a submarine sonar sound clip).
Link: Removed 11/18/08
Use: /sonar on|off to turn the sonar on or off. The plugin is registered ON at startup.
Read a novel while you mine.
Since there were already other good plugins to identify new incoming vessels - and since this is my first lua plugin - this plugin just notifies you when a new ship has entered the sector. You will hear a ping sound (taken from a submarine sonar sound clip).
Link: Removed 11/18/08
Use: /sonar on|off to turn the sonar on or off. The plugin is registered ON at startup.
get enterleave
it tells you who/ faction / major standings / how close when they entered / and can give you sound for entry and exit
it tells you who/ faction / major standings / how close when they entered / and can give you sound for entry and exit
LOL, that's unfortunate. Found out a bit too late. Well, I thanks for the info. I'll check that out too.
There are some very nice plugins available. I'm happy that they opened plugin development to the users. Ship tinkering builds on the gameplay alot.