mirror of
https://github.com/spencershepard/RotorOps.git
synced 2025-11-10 15:45:30 +00:00
update pydcs, add chinook, bugfixes
This commit is contained in:
committed by
Spencer Shepard
parent
91ea29f7c3
commit
3bf41f0dec
@@ -15,7 +15,7 @@
|
||||
|
||||
|
||||
RotorOpsPerks = {}
|
||||
RotorOpsPerks.version = "1.7.0"
|
||||
RotorOpsPerks.version = "1.7.1"
|
||||
env.warning('ROTOROPS PERKS STARTED: '..RotorOpsPerks.version)
|
||||
trigger.action.outText('ROTOROPS PERKS STARTED: '..RotorOpsPerks.version, 10)
|
||||
RotorOpsPerks.perks = {}
|
||||
@@ -52,14 +52,14 @@ RotorOpsPerks.points = {
|
||||
RotorOpsPerks.player_fatcow_types = {
|
||||
"UH-60L",
|
||||
"Mi-8MT",
|
||||
--insert CH-47 here!
|
||||
"CH-47Fbl1"
|
||||
}
|
||||
|
||||
RotorOpsPerks.static_helicopters_at_farp = true --spawn static helicopters at the FARP if player reslots
|
||||
RotorOpsPerks.static_helicopter_types = { --mapping of player helicopters to their static equivalents
|
||||
["UH-60L"] = "UH-60A",
|
||||
["Mi-8MT"] = "Mi-8MT",
|
||||
--insert CH-47 here!
|
||||
["CH-47Fbl1"] = "CH-47D"
|
||||
}
|
||||
|
||||
---- END OPTIONS ----
|
||||
@@ -1469,6 +1469,11 @@ function handle:onEvent(e)
|
||||
return
|
||||
end
|
||||
|
||||
if not e.initiator.getName then
|
||||
log('LEAVE: cannot get initiator player name. Returning.')
|
||||
return
|
||||
end
|
||||
|
||||
local player_unit_name = e.initiator:getName()
|
||||
log('player_unit_name is ' .. player_unit_name)
|
||||
local player_name = e.initiator:getPlayerName()
|
||||
|
||||
Reference in New Issue
Block a user