July 23, 2019, 09:20 am

Author Topic: [Release] Edible Burger  (Read 2482 times)

Offline Harlan_Jones

  • ByB Rookie
  • **
  • Posts: 99
    • View Profile
[Release] Edible Burger
« on: August 11, 2014, 05:08 am »
Because why must everything be useful?
Type this in your console: wiremod_expression2_model models/food/burger.mdl
Code: [Select]
@name Burger
@inputs
@outputs
@persist Burger:string View:string Player:entity Click Boom
@trigger

if(first()){
    Click = 0
    Boom = 0
    soundPurge()
}

interval(500)

if(findCanQuery())
{
    findIncludeClass("player")
    findInSphere(entity():pos(),250)
    Player = findClosest(entity():pos())
}


Burger = "models/food/burger.mdl"
View = Player:aimEntity():model()


if(View == Burger && Click == 0){
    soundPlay(0,0,"vo/sandwicheat09.wav")
    soundPlay(1,0,"npc/barnacle/barnacle_crunch3.wav")
    Click++
}

if(Click == 1){
    Boom++
}

if(Boom > 3){
    selfDestruct()
}
« Last Edit: August 12, 2014, 08:31 am by Kgwilson »

Offline Danrox147

  • Super Admin
  • ByB Fanatic
  • *
  • Posts: 392
  • Personal Text..........
    • View Profile
Re: [Release] Edible Burger
« Reply #1 on: August 11, 2014, 09:59 am »
I've got something similar called the trippa snippa. It is a hotdog which contains:
Speed, weed, heroin, cocaine, mushrooms, pine-o-clean, petrol, battery acid, acid, salvia, some herbs and spices and some lettuce and tomato, vodka sauce, bam and the dirt is gone, Ajax spray and wipe, some chicken and cheese all in a piece of bread. Also you hear the sound of a whipper snipper going. It eye rapes the smeg out of you
                                   ^^^^ Very True ^^^^

Offline Harlan_Jones

  • ByB Rookie
  • **
  • Posts: 99
    • View Profile
Re: [Release] Edible Burger
« Reply #2 on: August 11, 2014, 01:11 pm »
....I can has eye rape?


Offline mrvideofreak

  • Supporter
  • ByB Rookie
  • *
  • Posts: 69
  • ByB = Busy yellow Buckets?
    • View Profile
    • My website
Re: [Release] Edible Burger
« Reply #3 on: August 11, 2014, 09:16 pm »
Why does the e2 disappear and not the burger?
Need help? Send me a PM here: Click Here
Or Add me on steam. I'm only accepting admins+

People that aren't smegs/that i like: 5
Conor
Pantho
StupidWeasel
Bandicoot
Dexter Morgan

People that are Asses: 3
Adol
Jelman
skytron

Offline SomeGuy

  • ByB Fanatic
  • ****
  • Posts: 332
    • View Profile
Re: [Release] Edible Burger
« Reply #4 on: August 11, 2014, 10:33 pm »
I've got something similar called the trippa snippa. It is a hotdog which contains:
Speed, weed, heroin, cocaine, mushrooms, pine-o-clean, petrol, battery acid, acid

LIZ M8 YA smegIN DRUGGA

Offline Conor

  • Root of all Evil
  • ByB Champion
  • *
  • Posts: 1349
    • View Profile
Re: [Release] Edible Burger
« Reply #5 on: August 12, 2014, 11:46 am »
....I can has eye rape?



I'm sorry what

Offline Freddie

  • Supporter
  • ByB Fanatic
  • *
  • Posts: 816
    • View Profile
Re: [Release] Edible Burger
« Reply #6 on: August 20, 2014, 12:35 am »
Type this in your console: wiremod_expression2_model models/food/burger.mdl

Or use @model models/food/burger.mdl

AutoMerge: August 20, 2014, 02:49 am
Code: [Select]
@name Burger
@inputs
@outputs
@persist Burger:string View:string Player:entity Click Boom
@trigger

if(first()){
    Click = 0
    Boom = 0
    soundPurge()
}

interval(500)

if(findCanQuery())
{
    findIncludeClass("player")
    findInSphere(entity():pos(),250)
    Player = findClosest(entity():pos())
}


Burger = "models/food/burger.mdl"
View = Player:aimEntity():model()


if(View == Burger && Click == 0){
    soundPlay(0,0,"vo/sandwicheat09.wav")
    soundPlay(1,0,"npc/barnacle/barnacle_crunch3.wav")
    Click++
}

if(Click == 1){
    Boom++
}

if(Boom > 3){
    selfDestruct()
}
This is so new and imaginative! I love it! Not much, but changed a little; less lines of code, and no console commands needed. You can now change the model by changing "@model <directory>" as well.


Code: [Select]
@name Burger
@persist Burger:string View:string Player:entity Click Boom
@model models/food/burger.mdl

if(first()){
    Click = 0
    Boom = 0
    soundPurge()
}

interval(500)

if(findCanQuery())
{
    findIncludeClass("player")
    findInSphere(entity():pos(),250)
    Player = findClosest(entity():pos())
}

View = Player:aimEntity():model()

if(View == entity():model() && Click == 0){
    soundPlay(0,0,"vo/sandwicheat09.wav")
    soundPlay(1,0,"npc/barnacle/barnacle_crunch3.wav")
    Click++
}

if(Click == 1){
    Boom++
}

if(Boom > 3){
    selfDestruct()
}
« Last Edit: August 20, 2014, 02:49 am by Freddie »