Data Realms Fan Forums http://45.55.195.193/ |
|
Guns being indestructible while being equipped/held http://45.55.195.193/viewtopic.php?f=4&t=31439 |
Page 1 of 1 |
Author: | TechnoIvan [ Sat Jul 14, 2012 3:16 am ] |
Post subject: | Guns being indestructible while being equipped/held |
Hey there guys, I've been lurking around here for a while, but now there's something I'd like to ask. Would it be possible to make all weapons held ignore bullets/harmful things (just like they ignore actors stepping or falling over them). So basically if you're holding an smg for example, and someone shoots you, the bullet would go past the weapon and hit you in the stomach... (or head, depending where you actor is holding it). The only way to destroy that smg would be to first kill the actor, and then shoot/blow up the gun while it's on the ground. If someone already found a way this happen, or there's already a mod that does that, would anyone be willing to share? This should only apply for weapons.. and maybe drills too.. but as for tools, it would make items such as Riot Shields useless, so those should probably remain the same. |
Author: | XxMrmechaxX [ Sun Jul 15, 2012 7:16 pm ] |
Post subject: | Re: Guns being indestructible while being equipped/held |
Why would you want that? it makes the game way to easy then |
Author: | Asklar [ Sun Jul 15, 2012 9:58 pm ] |
Post subject: | Re: Guns being indestructible while being equipped/held |
The Riot Shield is not a tool. It's a Held Device. A Shield. Now, I think it's possible to do this. Like, setting GetsHitByMOs = 0, and it wouldn't be able to get hit. But, actors wouldn't be able to grab them. Probably a longer lua workaround, but that would be laggy, considering the amount of weapons during a match, and I'd bet it would be unreliable. Plus, half of the fun in CC is destroying your opponents weapons, leaving them helpless out there |
Author: | Bad Boy [ Sun Jul 15, 2012 10:03 pm ] |
Post subject: | Re: Guns being indestructible while being equipped/held |
Xeonargh's mod has this, find out how he does it there and use that script. |
Author: | Azukki [ Tue Jul 17, 2012 1:44 am ] |
Post subject: | Re: Guns being indestructible while being equipped/held |
Code: function Update(self) if self.ID ~= 255 then self.GetsHitByMOs = false else self.GetsHitByMOs = true end end It's simple enough that I imagine it's plenty reliable and won't cause much lag. Just plop this script on every device you want affected. If it already has a script, just tack the contents of this update function into the contents of the existing script's update function. (or give that script this update function if it doesn't have one already) But, other scripts that do things with held weapons won't work if the held weapon has this going on; other scripts than its own won't be able to reference it when it's getshitbymos=0. |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |