Welcome, Guest. Please login or register.
Did you miss your activation email?
October 25, 2014, 08:37:05 pm
Home Help Login Register
News: Zombie Master 2

Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: No Prop Killing « previous next »
Pages: [1]
Author Topic: No Prop Killing  (Read 1335 times)
Meta-Stick
Poster

Posts: 529


addicted to lifting


« on: July 29, 2010, 01:40:45 pm »

So I was playing thething, and I noticed you couldn't exactly prop kill as easy with the ladders in it. So, could this property be added to all props? The only problem I see with that, is it almost isn't realistic when dropping it...

Quote from: GlobalEnjoi
Just grab some bottles and stick them in girls...
manbearpig101
Poster

Posts: 11


« Reply #1 on: July 29, 2010, 11:07:42 pm »

Can't you just make that if the inflictor (of the damage) is of the class "prop_physics" then just scale the damage down to 0?

I think that would work.

Edit: And of course you would have to check if it has been used by a magneto stick, but that wouldn't be too hard.
Charles445
Build Tester
*
Posts: 2446


This avatar is still funny


« Reply #2 on: July 29, 2010, 11:09:16 pm »

The reason it doesn't work for thething's ladders is because the ladders probably have a very small mass.
The reason they have a small mass is because either the ladders were never meant to be physics props (overridden to become them) or the mass scale was turned down to allow carrying.

EDIT: As for this property being added, the best place to look would be GM:EntityTakeDamage

EDIT2: Line 860 to about 866 of player.lua, this is where physics damage can be scaled.

if dmginfo:IsDamageType(DMG_CRUSH) and IsValid(att) and (not att:IsPlayer()) then
         dmginfo:ScaleDamage(0.25)
         if ValidEntity(infl) and ValidEntity(infl:GetOwner()) and infl:GetOwner():IsPlayer() then
            dmginfo:ScaleDamage(0)
            dmginfo:SetDamage(0)
         end
      end

Replacing with...

if dmginfo:IsDamageType(DMG_CRUSH) and IsValid(att) and (not att:IsPlayer()) then
         dmginfo:ScaleDamage(0.25)
         if ValidEntity(infl) and ValidEntity(infl:GetOwner()) and infl:GetOwner():IsPlayer() then
            dmginfo:ScaleDamage(0)
            dmginfo:SetDamage(0)
         end
      end
if dmginfo:IsDamageType(DMG_CRUSH) and IsValid(att) and (att:IsPlayer()) then
         dmginfo:ScaleDamage(0)
end


Should theoretically work. I have not tested this.
« Last Edit: July 29, 2010, 11:16:02 pm by Charles445 »

Ok, so Bad King, you are just going to wait for Garry to fix?
What an idiotic thing to ask. Dammit weed.
Bookcases, Bookcases Everywhere
Bad King Urgrain
Administrator
*****
Posts: 12744



« Reply #3 on: July 30, 2010, 07:11:48 am »

Nope, that will just make falling on someone's head not damage them.

Is there ever a valid case of physics props killing players? I could just scale the damage down further to 0.1 or something.
FF|NedStar
Poster

Posts: 1045


Look into my eyes.


« Reply #4 on: July 30, 2010, 11:05:05 am »

As a traitor I tend to throw props at people every now and then, while this is a valid tactic, props generally do more harm then good. That prop kills are not registered as a kill make them the ultimate grieving weapon that can not be traced back by an admin.
I'd hate to see prop killing nerved down to the point where it becomes useless as it does add some interesting tactics to the game-play, e.g., using it as a weapon when you got nothing else, plausibility of accidental kill.

If possible, I'd like to see them stay in their current shape but have the damage done by the prop put on the player who threw it, rather then world damage.



Quote from: Autist
You're so buttmad faggot an admin who rdms and ghosts and lets his friends aimbot what a classy faggot, thank god half your server consists of asslickers otherwise nobody would play on your shitty server.
Bad King Urgrain
Administrator
*****
Posts: 12744



« Reply #5 on: July 30, 2010, 11:33:09 am »

Is throwing things the common method of prop killing? I don't think swinging props with the magneto stick works. I need a good way of reproducing prop damage in order to see if I can make it attribute properly.
Erscheinung
Poster

Posts: 685


« Reply #6 on: July 30, 2010, 11:34:30 am »

As far as I know if your holding it, it does no damage. It's only thrown props that kill.
FF|NedStar
Poster

Posts: 1045


Look into my eyes.


« Reply #7 on: July 30, 2010, 02:44:48 pm »

Is throwing things the common method of prop killing? I don't think swinging props with the magneto stick works. I need a good way of reproducing prop damage in order to see if I can make it attribute properly.

You swing your mouse and let it go at the right moment, if done right the prop will fly pretty far and will kill/massively hurt anyone it hits. Most effective props are bricks, barrels and anything that is not breakable.

Quote from: Autist
You're so buttmad faggot an admin who rdms and ghosts and lets his friends aimbot what a classy faggot, thank god half your server consists of asslickers otherwise nobody would play on your shitty server.
Bad King Urgrain
Administrator
*****
Posts: 12744



« Reply #8 on: July 30, 2010, 03:18:01 pm »

Yeah, I managed it after some practice. The v6 release should attribute damage from thrown stuff properly.
Charles445
Build Tester
*
Posts: 2446


This avatar is still funny


« Reply #9 on: July 30, 2010, 07:20:17 pm »

Nope, that will just make falling on someone's head not damage them.
I learned that that could happen yesterday. I think it was Secone I landed on.

Ok, so Bad King, you are just going to wait for Garry to fix?
What an idiotic thing to ask. Dammit weed.
Bookcases, Bookcases Everywhere
Nel
Poster

Posts: 1954



« Reply #10 on: July 30, 2010, 09:05:17 pm »

I learned that that could happen yesterday. I think it was Secone I landed on.

That hurt. Sad
Charles445
Build Tester
*
Posts: 2446


This avatar is still funny


« Reply #11 on: July 30, 2010, 09:06:10 pm »

It was either me or you nel

Ok, so Bad King, you are just going to wait for Garry to fix?
What an idiotic thing to ask. Dammit weed.
Bookcases, Bookcases Everywhere
Meta-Stick
Poster

Posts: 529


addicted to lifting


« Reply #12 on: August 01, 2010, 10:53:54 am »

Wait, so BKU didn't know about prop killing? I just facerolled. However he did tell us, "I won't know about things, unless people tell me." That's funny, thanks for the update. Much needed smile

Quote from: GlobalEnjoi
Just grab some bottles and stick them in girls...
Pages: [1]  
Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: No Prop Killing « previous next »
Jump to:  


Login with username, password and session length

Powered by SMF 1.1.19 | SMF © 2013, Simple Machines
Page created in 0.103 seconds with 20 queries.