Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 12th, 2012  |  syntax: None  |  size: 2.83 KB  |  hits: 18  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. INTERACTION_NPC_2 = 5
  2.  
  3. local interaction = {}
  4.  
  5. interaction.name = "Roger 'Toodles' Stegham"
  6.  
  7. interaction.model = Model("models/humans/group02/male_04.mdl")
  8. interaction.sequence = "luggageidle"
  9.  
  10. interaction.angle = Angle(0, 0, 0)
  11. interaction.position = Vector(7222.4526, -7376.6777, -1263.9687)
  12.  
  13. function interaction:Start(entity)
  14.         dusk:SetInteractionFOV(entity, true)
  15.        
  16.         local interactionPanel = vgui.Create("dusk_interaction")
  17.  
  18.         interactionPanel:SetDialog("Oh god did you hear that!")
  19.                 --interaction.sequence = "Fear_Reaction"
  20.                 --Set new animation sequence here
  21.        
  22.         interactionPanel.OnDialogClick = function(self)
  23.                 self:AddOption("I didn't hear anything.", function()
  24.                         --interaction.sequence = "Fear_Reaction_Idle"
  25.                         --Set new animation sequence here
  26.                        
  27.                         interactionPanel:SetDialog("I keep hearing people scream!\nThey are asking for my help.")
  28.                        
  29.                         interactionPanel.OnDialogClick = function(self)
  30.                                 interactionPanel:SetDialog("Sometimes at night I sneak up there you know.")
  31.                                
  32.                                 interactionPanel.OnDialogClick = function(self)
  33.                                         self:AddOption("Sneak where?.", function()
  34.                                                 interactionPanel:SetDialog("I sneak through the hole in the garage floor.\nThings are strange there.")
  35.                                                
  36.                                                 interactionPanel.OnDialogClick = function(self)
  37.                                                         interactionPanel:SetDialog("Sometimes when I see them running for me, I like to go swimming.")
  38.                                                        
  39.                                                         interactionPanel.OnDialogClick = function(self)
  40.                                                                 interactionPanel:SetDialog("[Roger slams the vending machine]")
  41.                                                                
  42.                                                                 interactionPanel.OnDialogClick = function(self)
  43.                                                                         interactionPanel:SetDialog("Where is my fucking booze!")
  44.                                                                        
  45.                                                                         interactionPanel.OnDialogClick = function(self)
  46.                                                                                 self:AddOption("It's alright just take it easy man.", function()
  47.                                                                                         interactionPanel:SetDialog("They promised me my booze, I am going to loose it.")
  48.                                                                                                 interactionPanel.OnDialogClick = function(self)
  49.                                                                                                         dusk:SetInteractionFOV(entity, false)
  50.                                                                                                        
  51.                                                                                                         interactionPanel:End(INTERACTION_NPC_2, entity)
  52.                                                                                                 end
  53.                                                                                         end)
  54.                                                                                 end)
  55.                                                                                
  56.                                                                                 self:AddOption("There is no booze in there you lunatic!", function()
  57.                                                                                         interactionPanel:SetDialog("Just get me a fucking drink you punk!")
  58.                                                                                                 interactionPanel.OnDialogClick = function(self)
  59.                                                                                                         dusk:SetInteractionFOV(entity, false)
  60.                                                                                                        
  61.                                                                                                         interactionPanel:End(INTERACTION_NPC_2, entity)
  62.                                                                                                 end
  63.                                                                                         end)
  64.                                                                                 end
  65.                                                                         end
  66.                                                                
  67.                                                                 end
  68.                                                         end
  69.                                                
  70.                                                 self:AddOption("Your fucking crazy.", function()
  71.                                                         dusk:SetInteractionFOV(entity, false)
  72.                                                        
  73.                                                         interactionPanel:End(INTERACTION_NPC_2, entity)
  74.                                                 end)
  75.                                         end)
  76.                                 end
  77.                         end
  78.                 end)
  79.         end
  80. end
  81.  
  82. dusk:AddInteraction(INTERACTION_NPC_2, interaction)