Suggestion
Add a SPARTA style kick as a secondary!
I just wanted to make some .gifs :D i love the mod.
[img]http://i35.tinypic.com/s6t8wx.gif[/img]
[img]http://i35.tinypic.com/29ggco1.gif[/img]
[QUOTE=Alchemyzer]I just wanted to make some .gifs :D i love the mod.
[img]http://i35.tinypic.com/s6t8wx.gif[/img]
[/QUOTE]
Hah, he curled up into the fetal position :v:.
Hey, maybe you could also create a new Sparta SWEP with this!
The trend's getting old though.
Will you make it so it doesn't make decals on objects? or at least re size the decals to make it look like a foot mark instead of a bullet. and maybe open the doors the same direction that the force was applied?
L337N008, did you know how appropriate it was for you to have Leonidas in your avatar when you released this?
Lua kinged.
Wait. L337N008, I have a door break function that might work better, do you want it? The door prop literally gets broken for a while, and it hurts whoever is in the door's path.
Now I remember, I think the creator of the Iron Man swep posted this snippet for a guy that was making a battering ram or something...
[lua] if trace.Entity:GetClass() == "prop_door_rotating" then
trace.Entity:EmitSound(Sound("physics/wood/wood_box_impact_hard3.wav"))
trace.Entity:Fire("open", "", .6)
trace.Entity:Fire("unlock", "", .6)
local pos = trace.Entity:GetPos()
local ang = trace.Entity:GetAngles()
local model = trace.Entity:GetModel()
local skin = trace.Entity:GetSkin()
trace.Entity:SetNotSolid(true)
trace.Entity:SetNoDraw(true)
local function ResetDoor(door, fakedoor)
door:SetNotSolid(false)
door:SetNoDraw(false)
fakedoor:Remove()
end
local norm = (pos - self.Owner:GetPos()):Normalize()
local push = 10000 * norm
local ent = ents.Create("prop_physics")
ent:SetPos(pos)
ent:SetAngles(ang)
ent:SetModel(model)
if(skin) then
ent:SetSkin(skin)
end
ent:Spawn()
timer.Simple(.2, ent.SetVelocity, ent, push)
timer.Simple(.2, ent:GetPhysicsObject().ApplyForceCenter, ent:GetPhysicsObject(), push)
timer.Simple(300, ResetDoor, trace.Entity, ent)
end[/lua]
Is there a way to speed up a doors opening speed? Because it'd be awesome if the door swung open instead of opening gently.
[QUOTE=GuyNumbers]L337N008, did you know how appropriate it was for you to have Leonidas in your avatar when you released this?
Lua kinged.[/QUOTE]
:v: .
[QUOTE=The_Funktasm]Wait. L337N008, I have a door break function that might work better, do you want it? The door prop literally gets broken for a while, and it hurts whoever is in the door's path.
Now I remember, I think the creator of the Iron Man swep posted this snippet for a guy that was making a battering ram or something...
[lua] if trace.Entity:GetClass() == "prop_door_rotating" then
trace.Entity:EmitSound(Sound("physics/wood/wood_box_impact_hard3.wav"))
trace.Entity:Fire("open", "", .6)
trace.Entity:Fire("unlock", "", .6)
local pos = trace.Entity:GetPos()
local ang = trace.Entity:GetAngles()
local model = trace.Entity:GetModel()
local skin = trace.Entity:GetSkin()
trace.Entity:SetNotSolid(true)
trace.Entity:SetNoDraw(true)
local function ResetDoor(door, fakedoor)
door:SetNotSolid(false)
door:SetNoDraw(false)
fakedoor:Remove()
end
local norm = (pos - self.Owner:GetPos()):Normalize()
local push = 10000 * norm
local ent = ents.Create("prop_physics")
ent:SetPos(pos)
ent:SetAngles(ang)
ent:SetModel(model)
if(skin) then
ent:SetSkin(skin)
end
ent:Spawn()
timer.Simple(.2, ent.SetVelocity, ent, push)
timer.Simple(.2, ent:GetPhysicsObject().ApplyForceCenter, ent:GetPhysicsObject(), push)
timer.Simple(300, ResetDoor, trace.Entity, ent)
end[/lua][/QUOTE]
I tried your code, it's great but there's one little problem there. When you hit a door, it makes it into a PROP and restores that door to its place only after 300 seconds, which is WAY too bad for RP'ing. Which means that if you bang that door open, everyone will be able to come inside your building, and loot everything that person has! But on the other side, it's great for playing Half-Life 2 campaign and watch those doors get banged open like in a movie. I'll add the door breaking code, but just make sure to keep that SWEP away from mingebags in RP.
EDIT: Once the 300 seconds pass (or 120 in my SWEP) it tries to restore that door, but instead it sends a message that it tried to use a NULL entity, and the door's not restoring, so no, I'm sorry but I won't use that code.
EDIT 2: I fixed the code, and it will be in the next version.
Awesome. Even though some people like the other kick swep better, it's community input and a CS:S friendly model that make this one shine.
Also, you can kick Breen in the face and have him do almost a full flip like when Kane does a big boot to the face, that makes it just a bit shinier.
I kicked breen and made him do like 30 flips... but of course, I edited the script to my liking and released on file front gmodfile.com and all those places and CLAIMED IT AS MINE! I got creds for it.
I lied, I never would do that. ( I would change the script for myself tho)
We love you L337N00B
Oh so very, very, much.
[QUOTE=lolsalad]We love you L337N00B
Oh so very, very, much.[/QUOTE]
:O .
Update released, Link:
[url]http://www.garrysmod.org/downloads/?a=view&id=52280[/url]
So Is this a SWEP or can you use a weapon with this?
Also, fuck yeah time, SWAT kicking crap here I come.
[QUOTE=BigBoom]So Is this a SWEP or can you use a weapon with this?
Also, fuck yeah time, SWAT kicking crap here I come.[/QUOTE]
It's a SWEP.
Make this a gamemode together with your Tac Weps!
Would it be hard to make it use the combine kick animation on the swep?
you know like, say you're in thirdperson and you want to kick someone but the player only stands still when you activate the swep
Delay it a little, it's just so stupid when the damage comes at once you kick
EDIT: Nevermind :P
can you add in the next version that i can bind a key to it?
this is already really nice.
but if you add that it will be SUPER MONSTER COOL!
Huzza for L337N00B!
Nice but not so nice.
Awesome.
Could you make the door restore toggleable? If not, I'd sooner it just be removed and the code for it posted for any server owners.
A bind would be nice too, but it's still awesome without.
It would be cool if you could combine this with other SWEPs.
So is my idea with the making it switch to the swep and automatically firing and then switch back to your previous weapon dead?
[QUOTE=Stud Muffin]So is my idea with the making it switch to the swep and automatically firing and then switch back to your previous weapon dead?[/QUOTE]
Wouldn't it be better if it was an autorun script which lets you bind the kick function to a key better? It's just like Smod.
[b]Edit:[/b]
[QUOTE=flyarion]Would it be hard to make it use the combine kick animation on the swep?
you know like, say you're in thirdperson and you want to kick someone but the player only stands still when you activate the swep[/QUOTE]
That won't work, player animations don't have the kick animation.
A demand: I can want you to regulate power.
The power (can choose him from 1x,5x,20x,100x,500x,5000x)
You should be replaced by "a turn" when player click the RMB.
I think that it is a difficult demand, but ask if I can do it.
Please allow for English to be out of order because I use the translation site:-)
[QUOTE=Pwn-o-Matic]Wouldn't it be better if it was an autorun script which lets you bind the kick function to a key better? It's just like Smod.[/QUOTE]
That is what I had suggested... :rolleye:
[QUOTE=joost1120]Dude... This is the Smod Tactical delta KICK! And the Smod kick swep from Useless
Weapons is BETTER![/QUOTE]
Hey if you dn't like the model then just replace it and if you do not know how i guess you will just have to live with it. :P
Sorry, you need to Log In to post a reply to this thread.