phys:Setmass(10) worked or something similar
yes you just have to reduce its mass to below a certain amount but if your not the creator of the model there is no way to do this
You can do it via lua I think
[lua]if (ent:GetModel() == “models/props_c17/furnitureStove001a.mdl”) then
–Set mass here
I think there is a ent:SetMass() function of something like that but I can’t find it to be sure of, however that is how you do it anyway
Just found the page HERE
So the code would now be
[lua]function NewMass( ent )
if (ent:GetModel() == “models/props_c17/furnitureStove001a.mdl”) then
local phys = ent:GetPhysicsObject() if (phys:IsValid()) then phys:Wake() end phys:SetMass( 100 ) end
this would go in autorun?
That code doesn’t seem to be working at the moment, so let me fix it up and I’ll re post
OK im waiting…
Patients my friend…
If setting mass fails you could change the power of the gravgun I think.
local mteam = TEAM_MAYOR
local gteam = TEAM_MAYORGUARD
local kammt = 0
if ply:Team() == mteam then
NotifyAll(1,4,“The mayor and his guard were killed for death of the mayor.”)
Notify(killer,1,4,“You assassinated the mayor and got $”…kammt…" from the underground!")
for o,p in pairs(player.GetAll()) do
if p:Team() == gteam then
return – This demots them instead of killing them.
When the mteam is killed both the mteam and gteam will be demoted and the killer will get kammt.
doesnt work zzaacckk
made my own script to make it gravity gun it works!
still need a script for mayor guard and mayor…