Re: Snowball damage!
Posted by Nanodeath on
Sat Dec 18th 2004 at 12:12am
Posted
2004-12-18 12:12am
356 posts
66 snarkmarks
Registered:
Nov 11th 2004
Occupation: Student - Bioengineering
Location: Seattle, WA, USA
Hey all, I'm trying to make a quickie map that involves the gravity gun and people pummeling each other with various snow goodies.
What I'm stuck on right now is exactly how to get the snowballs to perform like, well, snowballs. Basically any amount of damage destroys them, and if you shoot one into an opponent with the gravity gun it does 25 damage. I was able to get the first part to work, but the second part I have no control over. It does 50 damage each time, and I think that's just because of their mass and because they're set to Rock (looks most realistic when they break). Is there any way I could make these deal only 25 damage? If not I guess it wouldn't really matter that much, just trying to keep the gameplay balanced, or at least let me try balancing it myself.
The other issue thus far is icicles. Yes, they're fun, and I have them set up so when you grab them off the roofs they orient themselves to be pointing directly away from you (though they spin when you shoot them, sadly). However, these are set up in the same way as the snowballs, except they're Glass instead of Rock. Now, I want them to be Glass because it has the closest sound and gib effects, but they don't do any damage! I try shooting them into another player and they just go poof and shatter. I think all the damage that anything in my map does so far is solely dependent on their material and mass...just occurred to me that I might try scaling the mass to alter the amount of damage, but is there another more direct way? Thanks.
Re: Snowball damage!
Posted by omegaslayer on
Sat Dec 18th 2004 at 12:24am
Posted
2004-12-18 12:24am
2481 posts
595 snarkmarks
Registered:
Jan 16th 2004
Occupation: Sr. DevOPS Engineer
Location: Seattle, WA
sounds like a fun map, let me know when you plan on releasing it, have
you tried messing around with their mass or density values? What entity
are you using specifically?
Re: Snowball damage!
Posted by Nanodeath on
Sat Dec 18th 2004 at 12:28am
Posted
2004-12-18 12:28am
356 posts
66 snarkmarks
Registered:
Nov 11th 2004
Occupation: Student - Bioengineering
Location: Seattle, WA, USA
It's just a func_physbox. And yeah, it should be interesting...might take a lot of tweaking to make the snow act more like snow, but I'm not sure how much of that I'll be able to do. I think I'll just go with scaling the mass for now.
Re: Snowball damage!
Posted by omegaslayer on
Sat Dec 18th 2004 at 12:33am
Posted
2004-12-18 12:33am
2481 posts
595 snarkmarks
Registered:
Jan 16th 2004
Occupation: Sr. DevOPS Engineer
Location: Seattle, WA
You could possibly try making a trigger_hurt around the ball (setting
its parent) and changing the dammage (a negitive value for the trigger
hurt will add life to you BTW)
Re: Snowball damage!
Posted by SaintGreg on
Sat Dec 18th 2004 at 12:58am
Posted
2004-12-18 12:58am
212 posts
51 snarkmarks
Registered:
Dec 3rd 2004
But then if you walk on top of the snowball when its on the ground it will hurt/heal you.
Re: Snowball damage!
Posted by omegaslayer on
Sat Dec 18th 2004 at 12:59am
Posted
2004-12-18 12:59am
2481 posts
595 snarkmarks
Registered:
Jan 16th 2004
Occupation: Sr. DevOPS Engineer
Location: Seattle, WA
I said possibly :biggrin:
Re: Snowball damage!
Posted by Nanodeath on
Sat Dec 18th 2004 at 1:20am
356 posts
66 snarkmarks
Registered:
Nov 11th 2004
Occupation: Student - Bioengineering
Location: Seattle, WA, USA
Well, I could make it so that you would have to pick up the snowball to make the trigger_hurt active, but if I could avoid creating a trigger_hurt + name it for each individual snowball that would be preferable :wink:
That method with the trigger_hurt would also mean if you miss then you wouldn't want to touch it afterwards...
Re: Snowball damage!
Posted by Nanodeath on
Sat Dec 18th 2004 at 1:35am
356 posts
66 snarkmarks
Registered:
Nov 11th 2004
Occupation: Student - Bioengineering
Location: Seattle, WA, USA
Ooh, thanks, I didn't realize that tool didn't rename/preserve relationships like that. That could come in handy in the future...as for now...there's still the issue of disabling the trigger_hurt if you miss the guy, and I think the only way you could do that would be with some default delay, but I don't think that would be that effective.
Re: Snowball damage!
Posted by Leperous on
Sat Dec 18th 2004 at 1:40am
Leperous
Creator of SnarkPit!
member
3382 posts
1635 snarkmarks
Registered:
Aug 21st 2001
Occupation: Lazy student
Location: UK
What? Make them into a func_physbox and give them a high mass scale (and no prop data etc. so they have infinite health) if you want them to do more damage when thrown about. And remember the "don't take physics damage" flag.
Re: Snowball damage!
Posted by omegaslayer on
Sat Dec 18th 2004 at 1:41am
2481 posts
595 snarkmarks
Registered:
Jan 16th 2004
Occupation: Sr. DevOPS Engineer
Location: Seattle, WA
yeah dont pay attention to the trigger hurt thing I was just brain stroming IF the mass scale didnt work
Re: Snowball damage!
Posted by Nanodeath on
Sat Dec 18th 2004 at 2:17am
356 posts
66 snarkmarks
Registered:
Nov 11th 2004
Occupation: Student - Bioengineering
Location: Seattle, WA, USA
Ok, but the issue is that they're doing too much damage, not too little. And I DO want them to break on impact. Hmm, and it doesn't seem like the scaling will work either, for some reason. Snowballs with mass scale at 0.5, 0.75, 0.875, and 0.9 all cause 5 damage on impact, and 0.95 and 1.0 cause 50 damage on impact. Guess I'll just go with 50 damage snowballs rolls eyes
Re: Snowball damage!
Posted by omegaslayer on
Sat Dec 18th 2004 at 2:31am
2481 posts
595 snarkmarks
Registered:
Jan 16th 2004
Occupation: Sr. DevOPS Engineer
Location: Seattle, WA
Maybe there is an entity that controls the physics impact dammage, like
world_something. And If you want them to break then set the health
ammount.
MAYBE (I just thought of it), in the input/output tabs, you could have
it when the snow ball hits someone, it triggers a negitive health to
the "client" (that is what the engine refers to you as), and this will
reduce it to a 25
Re: Snowball damage!
Posted by Nanodeath on
Sat Dec 18th 2004 at 2:46am
356 posts
66 snarkmarks
Registered:
Nov 11th 2004
Occupation: Student - Bioengineering
Location: Seattle, WA, USA
I already tried the second thing there, but it's not !activator OR !player. Actually, I found a bit of a bug regarding that. If I set it to damage the activator by x amount when it's broken, and you shoot the object into another object with the same setting the game crashes. I believe this is because when object A hits object B, object A is destroyed, but then object B, because its destroyed also, tries dealing 25 damage to object A, which is dead. Or perhaps they're trying to apply damage to each other, when possibly neither of them exist anymore? shrug
Re: Snowball damage!
Posted by omegaslayer on
Sat Dec 18th 2004 at 4:48am
2481 posts
595 snarkmarks
Registered:
Jan 16th 2004
Occupation: Sr. DevOPS Engineer
Location: Seattle, WA
Yeah sorry I cant be of anymore help, if you want my oppinion I wouldnt mind the snow balls causing 50 Hp, cause other wise while one person is trying to kill you with 5 snoballs, the other can kill you with the AR faster.
Re: Snowball damage!
Posted by Nanodeath on
Sat Dec 18th 2004 at 5:31am
356 posts
66 snarkmarks
Registered:
Nov 11th 2004
Occupation: Student - Bioengineering
Location: Seattle, WA, USA
Yeah, I was thinking 50 would be fine, actually. And uh, in a map where you're supposed to be having a snowball fight...let's just say there'll be a few entities in there to strip the players of their conventional weapons :razz:
Re: Snowball damage!
Posted by LaChupakabra on
Mon Dec 20th 2004 at 1:46am
31 posts
3 snarkmarks
Registered:
Dec 4th 2004
i love your idea, but i am making a snow map (not snowball, just a snowy dm map) and i cant find a snowy ground texture, any help? :razz:
Re: Snowball damage!
Posted by Nanodeath on
Mon Dec 20th 2004 at 5:32am
356 posts
66 snarkmarks
Registered:
Nov 11th 2004
Occupation: Student - Bioengineering
Location: Seattle, WA, USA
Try exporting the snow texture from CS: S and using that...there's a tut on here for custom texs.