Data Realms Fan Forums http://45.55.195.193/ |
|
Invincible = Lua? http://45.55.195.193/viewtopic.php?f=73&t=19465 |
Page 1 of 1 |
Author: | franky1223 [ Sun Aug 08, 2010 11:08 pm ] |
Post subject: | Invincible = Lua? |
Hello everyone, I just wanted to know if I can make an actor invincible (not just hard to kill, bullets are bouncing and impacts do nothing). Even if it needs lua, could someone explain me how to do? |
Author: | CaveCricket48 [ Sun Aug 08, 2010 11:59 pm ] |
Post subject: | Re: Invincible = Lua? |
It's pretty much impossible to make an actor 100% invincible. Recursive gibbing is one way you can get an actor to "respawn" instantly when it dies, making it difficult to get rid of. |
Author: | franky1223 [ Mon Aug 09, 2010 12:16 am ] |
Post subject: | Re: Invincible = Lua? |
If we get rid of the impact resistance, is it possible to make it... 99% invincible (without recursive gibbing please)? |
Author: | Grif [ Mon Aug 09, 2010 1:08 am ] |
Post subject: | Re: Invincible = Lua? |
You can do roughly 80% invincible through plain .ini means. |
Author: | mail2345 [ Mon Aug 09, 2010 1:13 am ] |
Post subject: | Re: Invincible = Lua? |
And this should take care of a good deal more: Code: function Update(self) self.Health = 100 --Incase some lua prevents regen if not SceneMan:IsWithinBounds(self.Pos, 0) then --Falling off the map self.Vel = Vector(-self.Vel.X,-self.Vel.Y) end if self.Vel.Magnitude > 100 then --Absurd velocities are bad self.Vel = Vector(0,0) end if self:GetController().InputMode ~= 1 or self:GetController().InputMode ~= 2 then --Prevent paralsys self:GetController().InputMode = 1 end self.ToDelete = false self.Lifetime = 99999 self.Age = 0 self.Status = 0 end That takes care of several things that inis can't block. However, Lua can still mess it up(GibThis for an example, but recursive gibbing takes care of that. Outright deleting the actor instead of setting it to delete can't be blocked, IIRC). |
Author: | PhantomAGN [ Mon Aug 09, 2010 1:56 am ] |
Post subject: | Re: Invincible = Lua? |
The actor could spawn a watchman particle which tracks the actor's position, and if the actor is ever removed from the map just replaces it. That ought to solve the plain delete. |
Author: | TheLastBanana [ Mon Aug 09, 2010 2:09 am ] |
Post subject: | Re: Invincible = Lua? |
Outright deleting usually causes the game to crash anyway. |
Author: | franky1223 [ Mon Aug 09, 2010 5:53 am ] |
Post subject: | Re: Invincible = Lua? |
Lua code doesn't work. I spawned my uberinvinciblemegarobotthatkicksass in bunker creation phase and it seemed working, then i spawned another one after the game started and it crashed. Also, I would have tried recursive gibbing, but I don't know how to do that. |
Author: | Grif [ Mon Aug 09, 2010 6:03 am ] |
Post subject: | Re: Invincible = Lua? |
Lua code virtually never crashes the game, though. |
Author: | franky1223 [ Mon Aug 09, 2010 6:07 am ] |
Post subject: | Re: Invincible = Lua? |
It could've been anything else... |
Author: | mail2345 [ Mon Aug 09, 2010 9:25 am ] |
Post subject: | Re: Invincible = Lua? |
I honestly don't see anything that SHOULD be affected by the presence of another. Phantom: Forgot that. I was about to ask about the inventory, but then I remembered that inventory cloning is possible. |
Author: | zalo [ Mon Aug 09, 2010 9:41 pm ] |
Post subject: | Re: Invincible = Lua? |
Also, on older builds it would dissapear when pushed into the terrain far enough. I don't know if it still does this, but it would be wise to have a terrain check (or recursive gibbing). |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |