Showing 976-1,000 of 2,768 items.
AuthorPreviewIDTitleDescriptionTagsUnlistedFile SizeCreatedUpdated
  
Avatar Avoca1419660682[Shine] Director (Spectator)M > Spectator
https://forums.unknownworlds.com/discussion/comment/2388373/#Comment_2388373

I came here to post an update on the system. It turns out that NS2 already has "FollowMoveMixin" for spectators, which is basically a third person camera following system. But it appears to be disabled and not in use. When I enabled it, the angles wouldn't update, but the target choosing is fine. So what I did yesterday was wire in a toggle on demand to work with shine. I've also wired in for the angles to update, and another toggle to change the delay between interval changing between 8-24s. I changed the target choosing to be done on interval and not mouse click.

All of the changes may be found here in my most recent version:

FollowMoveMixin modified
https://github.com/KyleAbent/-Shine-Proving-Ground/blob/10.5.18/lua/FollowMoveMixin_Director.lua

local orig = FollowMoveMixin.__initmixin
function FollowMoveMixin:__initmixin()
orig(self)
self.intervals = 9
end

function FollowMoveMixin:setIntervals(num)
self.intervals = num
end

function FollowMoveMixin:getFME()
return self.followMoveEnabled
end

UpdateTarget function

-- local primaryAttack = bit.band(input.commands, Move.PrimaryAttack) ~= 0
-- local secondaryAttack = bit.band(input.commands, Move.SecondaryAttack) ~= 0
local isTargetValid = self:GetIsValidTarget(Shared.GetEntity(self.followedTargetId))
-- local changeTargetAction = primaryAttack or secondaryAttack

-- Require another click to change target.
-- NOT. That would be lame, yo. Let me watch a movie and commentate over it on demand.
local changeTarget = not isTargetValid--(not self.changeTargetAction and changeTargetAction) or not isTargetValid
changeTarget = changeTarget or ( not self.timeLast or self.timeLast + self.intervals < Shared.GetTime() ) --Lets not stay forever

self.changeTargetAction = changeTargetAction

if changeTarget then--and secondaryAttack then
self:ChangeTarget(self, true)
self.timeLast = Shared.GetTime()
elseif changeTarget then --??
self:ChangeTarget(self, false)
end

UpdateView function
if targetEntity ~= nil then
local dir = GetNormalizedVector(targetEntity:GetOrigin() - self:GetOrigin())
local angles = Angles(GetPitchFromVector(dir), GetYawFromVector(dir), 0)
self:SetOffsetAngles(angles)
end\n\n\n(and more from that file)

Client menu toggle settings:

https://github.com/KyleAbent/-Shine-Proving-Ground/blob/10.5.18/lua/shine/extensions/director/client.lua

Shine.VoteMenu:AddPage( "Intervals", function( self )
self:AddSideButton( "8 Seconds", function()
Shared.ConsoleCommand( "sh_director_intervals 8" )
end )
self:AddSideButton( "12 Seconds", function()
Shared.ConsoleCommand( "sh_director_intervals 12" )
end )
self:AddSideButton( "16 Seconds", function()
Shared.ConsoleCommand( "sh_director_intervals 16" )
end )
self:AddSideButton( "20 Seconds", function()
Shared.ConsoleCommand( "sh_director_intervals 20" )
end )
self:AddSideButton( "24 Seconds", function()
Shared.ConsoleCommand( "sh_director_intervals 24" )
end )
self:AddTopButton( "Back", function()
self:SetPage( "Spectator" )
end )
end )\n\n\n Shine.VoteMenu:AddPage( "Spectator", function( self )
self:AddTopButton( "Back", function()
self:SetPage( "Proving Grounds" )
end )
self:AddSideButton( "Intervals", function()
self:SetPage( "Intervals" )
end )
end )

Shine.VoteMenu:EditPage( "Spectator", function( self )
self:AddSideButton( "Toggle Director", function()
-- Shared.ConsoleCommand( "sh_specvoice 1" )
--local player = Client.GetLocalPlayer()
-- player:setNoQueue(player)
Shared.ConsoleCommand( "sh_direct" )
--self:SetPage( "Main" )
--self:SetIsVisible( false )
end )\n\n\nend )\n\n\nServer.lua very bottum here with the commands are the only thing in use and none of my for loops for target choosing are in use at the moment

function Plugin:CreateCommands()\n\n\nlocal function Direct( Client )
local Player = Client:GetControllingPlayer()
if Player:GetSpectatorMode() ~= kSpectatorMode.FreeLook then Player:SetSpectatorMode(kSpectatorMode.FreeLook) end
if Player:GetTeamNumber() == 3 then
--Player.isDirecting = not Player.isDirecting
Player:SetFollowMoveEnabled( not Player:getFME() )
self:NotifyGeneric( Client, "Director Boolean is now %s ", true, Player:getFME() )
end
end

local DirectCommand = self:BindCommand( "sh_direct", "direct", Direct, true)

local function Director_Intervals( Client, Number )
local Player = Client:GetControllingPlayer()
if Player:GetTeamNumber() == 3 then
Player:setIntervals(Number)
self:NotifyGeneric( Client, "Intervals delay is now %s", true, Number )
end
end

local DirectIntervalsCommand = self:BindCommand( "sh_director_intervals", "director_intervals", Director_Intervals, true)
DirectIntervalsCommand:AddParam{ Type = "number", Min = 8, Max = 32, Round = true, Optional = false, Default = 8 }\n\n\nend\n\n\nhttps://github.com/KyleAbent/-Shine-Proving-Ground/blob/10.5.18/lua/shine/extensions/director/server.lua

I may do some editing to who to pick as target, such as to include arcs/macs/drifters moving and/or set player to require incombat to make angles more interesting

function Spectator:GetIsValidTarget(entity)

local isValid = entity and not entity:isa("Commander") and (HasMixin(entity, "Live") and entity:GetIsAlive())
isValid = isValid and (entity:GetTeamNumber() ~= kTeamReadyRoom and entity:GetTeamNumber() ~= kSpectatorIndex)

return isValid

end
Look and Feel, Must be run on ServerNo9.611 KiBJun 23, 201807-10-2018 00:52:51
Avatar munkeyspaynk224021574Reverse HighlightMod ID: D5A4C46

Highlighting everything not of interest for whatevs
Alien Vision, Passes Default ConsistencyNo1.312 KiBFeb 3, 201404-10-2018 07:17:48
Avatar munkeyspaynk416172684Orange Alien VisionModID: 18CE4A8C

Tints the environment orange and flattens out the details. Important objects are hilighted darker orange.
Alien Vision, Passes Default ConsistencyNo1.079 KiBMar 29, 201504-10-2018 06:58:47
Avatar munkeyspaynk334760069Dramatic AlienvisionMod ID: 13F40885

Default on red highlighting with green environment and limited view distance. Toggles for dramatic and brighter vision with no highlighting.
Alien Vision, Passes Default ConsistencyNo1.093 KiBNov 1, 201404-10-2018 06:57:43
Avatar munkeyspaynk203226891munkeyspaynk Alien VisionMod ID: C1CFF0B

Messing around with alien vision. It only helps with target sighting but not night vision.
Alien Vision, Passes Default ConsistencyNo1.319 KiBDec 12, 201304-10-2018 06:55:24
Avatar munkeyspaynk191209193munkeyspaynk Dot CrosshairMod ID: B659EE9

munkeyspaynk Dot Crosshair
Passes Default Consistency, CrosshairsNo117.217 KiBNov 2, 201304-10-2018 06:55:06
Avatar Avoca438378667ns2_trainsiege2modified entitiesNo494.447 KiBMay 6, 201501-10-2018 01:04:18
Avatar Avoca748651798ns2_hivesiege6desc requiredMust be run on Server, MapNo2.579 MiBAug 21, 201630-09-2018 17:09:48
Avatar Avoca1526522889ns2_bunkersiege2_2015ns2_bunkersiege2_2015No13.091 MiBSep 30, 201830-09-2018 05:29:03
Avatar Avoca1526521542ns2_bunkersiege2_2015ns2_bunkersiege2_2015No13.091 MiBSep 30, 201830-09-2018 05:00:12
Avatar Avoca1419384379ns1_birdsiege_2017ns1_birdsiege_2017No3.991 MiBJun 23, 201829-09-2018 22:30:58
Avatar Steelcap1524374850Stealth CamoCamoflauge defeats passive obs detectionMust be run on Server, Gameplay TweakNo4.258 KiBSep 27, 201827-09-2018 22:17:01
Avatar Avoca1521558510Timers, Doors, CountdownThe idea is to have only bare minmum requirement to make playable all of the maps I've worked on in my NS2 .level spark editor mapping.\n\n\nFrom converting .bsp ns1 to .level ns2, and collaberating with various map creators. I want these maps to be placed on the NS2\n\n\nserver browser, and not arcade tab. Therefore I am dedicating my available resources to hosting countless maps using NS2 vanilla gameplay\n\n\nwith door entities.\n\n\nThis means nothing else. No exploit check, no specific siege room rules. Pure chaos. Can you contaminate during front door closed and setup\n\n\ntime? Yes you can. Can you build a nest in siege before it opens? yes you can. Can you build a tunnel past front door while it's closed,\n\n\nand sneak in marine base while marines are setting up? yes you can.\n\n\nNot only that. But there's less. No additional exo slots, no siege beacon , no advanced beacon, no additional researches. This is as vanilla\n\n\nas it gets. The only difference being a map with door entities, and LOTS MORE RES NODES. Meaning both teams mostly having all upgrades.\n\n\nLets see how well marines can push into alien base before aliens can completely break the concept of the original siege design from NS1\n\n\nwithout an alien commander and without gorge tunnels.\n\n\nLets see how well good map design can outstand terrible gameplay design.Must be run on Server, ToolNo18.979 KiBSep 24, 201824-09-2018 08:47:22
Avatar Steelcap1503653309Heavy BolterThe Marines meet the Adeptus AstartesMust be run on Server, Gameplay TweakNo2.596 MiBSep 4, 201821-09-2018 21:09:58
Avatar Jon1224509645WeaponResearchRedux++WeaponResearchRedux with values changed to be more balanced in Siege++.

Tech and Research changes:

Allows the commander to drop shotguns, mines, hmg's, flamethrowers, and grenade launchers without needing to research them. Structure requirements still apply.

Grenade Launcher, Flamethrower, and Heavy Machine Guns are all available for research at the Advanced Armory for 15 T.Res and 15 seconds each.

Commander weapon drop price changes:

Shotgun: 15 Tres
Grenade Launcher: 10 Tres
HeavyMachineGun: 15 Tres
Minepack: 5 Tres
Flamethrower: 10 Tres
Welder 1.Tres

Other changes:

Moves the WeaponMenu button to the far right so you can switch between the Assist and Weapon menus with the same keybind.

Don't use with WeaponDropRedux.

Special thanks for Steelcap, Nin, Ghoul, Brute, and Momone Momo for helping with the code

ModID: 48fc88cd
Must be run on Server, Gameplay TweakNo4.974 KiBDec 8, 201720-09-2018 03:44:56
Avatar Steelcap1201923351Iron ExoModification to reduce exo damage and increase exo armor.\n\n\nChange Minigun damage from 10 to 6Change Minigun damage type from Normal to HeavyMust be run on Server, Gameplay TweakNo8.12 KiBNov 15, 201719-09-2018 18:43:43
Avatar Avoca1516557277ns1_csiege_2017ans1_csiege_2017aNo753.557 KiBSep 18, 201819-09-2018 01:03:39
Avatar Tik1479440378[Shine] Lock TeamsPrevent players from joining the marine and alien team in an ongoing match using !lock and !unlock in the chat.

You need to add Shine permissions for your admins to use sh_lockteams and sh_unlockteams commands.

This does not enforce a specific team size automatically, there are a lot of scenarios apart from player count that can screw a game, some examples: a high skilled player joining at the same time with a rookie, a match that started as captains and was agreed no hot joining till it ends, you don't want to put a password on but only allow to spectate, and so on.

It's only a manual admin tool to prevent the ruining of matches by people who don't read the server rules or don't care about balance.

Binding the commands is highly recommended for fast usage while in game, example:
bind F2 sh_lockteams
bind F3 sh_unlockteams

mod id: 582E77FA
Must be run on Server, ToolNo1.185 KiBAug 14, 201818-09-2018 23:55:07
Avatar Avoca872394853ns1_xtsiege_2017akeith richards - runnin' too deepMust be run on Server, MapNo16.091 MiBFeb 26, 201718-09-2018 22:05:32
Avatar minsci168645088ns2_yanaMod ID: a0d51e0

WIP

Yana station is infested by Kharaa and
was abandoned. TSF is trying to appropriate this station.

- 5 Tech Points
- 1 Marine start (Loading)
- 2 Alien starts (Armory, Living Quarters)
- 10 Resource Towers

https://forums.unknownworlds.com/discussion/132097/ns2-yana

** Sauna wall textures and sauna heater made by WhiteDevil **
MapNo7.931 MiBAug 11, 201318-09-2018 14:10:51
Avatar Avoca1514139451ns1_cerbsiege_2017anot to be confused with ns1_cerbsiege_2017 -- Now that LayStructures and sh_buy is out of the way I no longer need nav_point below bunker, above bunker, above mid.and macs may trip less.\n\n\nI've ideas for _2018 : moving siege to alien res room and connecting siege with stargate room (alternate path with a catch) and adding siege door at old alien hive loc. FOr now this is good.Must be run on Server, MapNo11.856 MiBSep 16, 201817-09-2018 03:49:57
Avatar Avoca457734776ns1_bestofsiege_2017aah!Must be run on Server, MapNo10.132 MiBJun 8, 201516-09-2018 20:34:54
Avatar Avoca817848956ns1_csiege_2017ns2_csiege - quality / made on twitchMust be run on Server, MapNo992.502 KiBDec 13, 201616-09-2018 04:14:04
Avatar Timothy1513845151BetterBotsBetter alien botsMust be run on ServerNo97.561 KiBSep 15, 201816-09-2018 03:15:52
Avatar Avoca1512486903Additional Exo LayoutsAdditional Exo layouts

DualWelderExosuit, DualFlamerExosuit, WeldFlamerExosuit,
RailgunWelderExoSuit, RailgunFlamerExoSuit

Thank you, Scatter. (Modified Modular Exo with permission)
Must be run on Server, Gameplay TweakNo20.986 KiBSep 14, 201814-09-2018 21:41:46