• Gotta find me the mask
    11 replies, posted
Ok, so I'm working on my first ever machinima on Garry's Mod and I've have a little problem. There's a part in my video that includes barney's metrocop mask but in my spawn menu i only have the effect and i dont want that crappy green ring in my video. Later, I found an addon that has combine and headcrab hat entities, so i figured that the entities were pretty much like props so i downloaded it.....but when i spawned them, nothing showed up. Ok my big point is that i need a way to get a combine mask prop, if anybody knows how DasBoSchitt did it in his videos Maybe if you guys know what's wrong with the scripting of the entities, that's another solution...here's the scripts: Combine Mask Entity: [Lua] AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include('shared.lua') function ENT:SpawnFunction( pl , tr ) local headcrabs , m = ents.FindByClass( "headcrabhat", "conehat" ); for _ , m in pairs( headcrabs ) do if ( m && m:IsValid( ) && m:GetOwner( ) == pl ) then return; end end local eyes = pl:LookupAttachment( 'anim_attachment_head' ); if ( eyes == 0 ) then return; end local headcrab = ents.Create( 'headcrabhat' ); headcrab:SetOwner( pl ); headcrab:SetParent( pl ); headcrab:SetModel("models/Nova/w_headgear.mdl") local attachment = pl:GetAttachment( eyes ); local pos = attachment.Pos headcrab:SetPos( pos ); local ang = attachment.Ang; local temp = ang.r ang.y = ang.y ang.r = ang.p + 90 ang.p = ((temp - 90)*-1) -10 headcrab:SetAngles( ang ); headcrab:Spawn( ); headcrab:Activate( ); headcrab:Fire( "SetParentAttachment", "anim_attachment_head" ) headcrab:SetMoveType( MOVETYPE_NONE ) headcrab:SetSolid( SOLID_NONE ) headcrab:SetCollisionGroup( COLLISION_GROUP_NONE ) headcrab:DrawShadow( false ) return headcrab; end function ENT:Think() if self.Entity:GetOwner():GetViewEntity():GetClass() == "gmod_cameraprop" then self.Entity:GetOwner():SetNWBool( "Camera", true) else self.Entity:GetOwner():SetNWBool( "Camera", false) end end [/lua] Headcrab Hat Entity: [lua] AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include('shared.lua') function ENT:SpawnFunction( pl , tr ) local headcrabs , m = ents.FindByClass( "headcrabhat", "conehat" ); for _ , m in pairs( headcrabs ) do if ( m && m:IsValid( ) && m:GetOwner( ) == pl ) then return; end end local eyes = pl:LookupAttachment( 'anim_attachment_head' ); if ( eyes == 0 ) then return; end local headcrab = ents.Create( 'headcrabhat' ); headcrab:SetOwner( pl ); headcrab:SetParent( pl ); headcrab:SetModel("models/Nova/w_headcrab.mdl") local attachment = pl:GetAttachment( eyes ); local pos = attachment.Pos headcrab:SetPos( pos ); local ang = attachment.Ang; local temp = ang.r ang.y = ang.y ang.r = ang.p + 90 ang.p = ((temp - 90)*-1) -10 headcrab:SetAngles( ang ); headcrab:Spawn( ); headcrab:Activate( ); headcrab:Fire( "SetParentAttachment", "anim_attachment_head" ) headcrab:SetMoveType( MOVETYPE_NONE ) headcrab:SetSolid( SOLID_NONE ) headcrab:SetCollisionGroup( COLLISION_GROUP_NONE ) headcrab:DrawShadow( false ) return headcrab; end function ENT:Think() if self.Entity:GetOwner():GetViewEntity():GetClass() == "gmod_cameraprop" then self.Entity:GetOwner():SetNWBool( "Camera", true) else self.Entity:GetOwner():SetNWBool( "Camera", false) end end [/lua] June 21, 2010 EDIT: I Forgot to add that I need these effects to be turned into actual props/entities with physics properties
You know the green ring disappears when you go into camera mode right?
i remember i tried recording with the effect, and as i remember it didnt, also the effect has no physics properties and i'm trying to throw it [editline]05:03PM[/editline] how did dasboschitt do it?
Probably parented it to a soda can prop or something [editline]01:07AM[/editline] Just PM him on youtube and ask
alright then
didn't get much help, did anybody take a look at the script for the headcrab and mask ents?
[QUOTE=Mooostache;22737646]Ok, so I'm working on my first ever machinima on Garry's Mod and I've have a little problem. There's a part in my video that includes barney's metrocop mask but in my spawn menu i only have the effect and i dont want that crappy green ring in my video. Later, I found an addon that has combine and headcrab hat entities, so i figured that the entities were pretty much like props so i downloaded it.....but when i spawned them, nothing showed up. Ok my big point is that i need a way to get a combine mask prop, if anybody knows how DasBoSchitt did it in his videos Maybe if you guys know what's wrong with the scripting of the entities, that's another solution...here's the scripts: Combine Mask Entity: [lua] AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include('shared.lua') function ENT:SpawnFunction( pl , tr ) local headcrabs , m = ents.FindByClass( "headcrabhat", "conehat" ); for _ , m in pairs( headcrabs ) do if ( m && m:IsValid( ) && m:GetOwner( ) == pl ) then return; end end local eyes = pl:LookupAttachment( 'anim_attachment_head' ); if ( eyes == 0 ) then return; end local headcrab = ents.Create( 'headcrabhat' ); headcrab:SetOwner( pl ); headcrab:SetParent( pl ); headcrab:SetModel("models/Nova/w_headgear.mdl") local attachment = pl:GetAttachment( eyes ); local pos = attachment.Pos headcrab:SetPos( pos ); local ang = attachment.Ang; local temp = ang.r ang.y = ang.y ang.r = ang.p + 90 ang.p = ((temp - 90)*-1) -10 headcrab:SetAngles( ang ); headcrab:Spawn( ); headcrab:Activate( ); headcrab:Fire( "SetParentAttachment", "anim_attachment_head" ) headcrab:SetMoveType( MOVETYPE_NONE ) headcrab:SetSolid( SOLID_NONE ) headcrab:SetCollisionGroup( COLLISION_GROUP_NONE ) headcrab:DrawShadow( false ) return headcrab; end function ENT:Think() if self.Entity:GetOwner():GetViewEntity():GetClass() == "gmod_cameraprop" then self.Entity:GetOwner():SetNWBool( "Camera", true) else self.Entity:GetOwner():SetNWBool( "Camera", false) end end Headcrab Hat Entity: AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include('shared.lua') function ENT:SpawnFunction( pl , tr ) local headcrabs , m = ents.FindByClass( "headcrabhat", "conehat" ); for _ , m in pairs( headcrabs ) do if ( m && m:IsValid( ) && m:GetOwner( ) == pl ) then return; end end local eyes = pl:LookupAttachment( 'anim_attachment_head' ); if ( eyes == 0 ) then return; end local headcrab = ents.Create( 'headcrabhat' ); headcrab:SetOwner( pl ); headcrab:SetParent( pl ); headcrab:SetModel("models/Nova/w_headcrab.mdl") local attachment = pl:GetAttachment( eyes ); local pos = attachment.Pos headcrab:SetPos( pos ); local ang = attachment.Ang; local temp = ang.r ang.y = ang.y ang.r = ang.p + 90 ang.p = ((temp - 90)*-1) -10 headcrab:SetAngles( ang ); headcrab:Spawn( ); headcrab:Activate( ); headcrab:Fire( "SetParentAttachment", "anim_attachment_head" ) headcrab:SetMoveType( MOVETYPE_NONE ) headcrab:SetSolid( SOLID_NONE ) headcrab:SetCollisionGroup( COLLISION_GROUP_NONE ) headcrab:DrawShadow( false ) return headcrab; end function ENT:Think() if self.Entity:GetOwner():GetViewEntity():GetClass() == "gmod_cameraprop" then self.Entity:GetOwner():SetNWBool( "Camera", true) else self.Entity:GetOwner():SetNWBool( "Camera", false) end end [/lua] June 21, 2010 EDIT: I Forgot to add that I need these effects to be turned into actual props/entities with physics properties[/QUOTE] If you just type [lua] [/lua] In the tags, like I did.
[QUOTE=Cysero;22789045]If you just type [lua] [/lua] In the tags, like I did.[/QUOTE] k done, any help anybody?
i need help, i need a couple of ragdolls made from art work done by my sister. i'll make sure that the art work will be as clear as posible. if any one is intrested please e-mail at [email]tripprules@yahoo.com[/email].
Get a fucking life and stop spamming.
[QUOTE=343N;23222706]Get a fucking life and stop spamming.[/QUOTE] lol...so have you taken a look at the code?
When you spawn the entity it shows up on you. Not in front of you.
Sorry, you need to Log In to post a reply to this thread.