the invincible model

View previous topic View next topic Go down

the invincible model

Post by RA2lover on Sat May 19, 2012 7:14 pm

Code:
// [RCD] NotABasicCarAnymore
Val
{
   BRAKE(default=0, max=80, step=80)
   ENGINE(default=0, min=-2500, max=2500, step=2500)
   GUN(default=0, max=9999999999, step=9999999999)
   HANDLE(default=0, min=-20, max=20, step=5)
   HBRAKE(default=0, max=100, step=100)
   INVINCIBILITY(default=1, max=2)
}
Key
{
   0:Engine(step=-500)
   1:Engine(step=500)
   2:Handle(step=-0.5)
   3:Handle(step=0.5)
   4:GUN(step=9999999999)
   7:Brake(step=30), HBrake(step=20)
   8:HBrake(step=20)
}
Body
{
   Core() {
      N:Chip() {
         N:Rudder(angle=Handle) {
            W:Frame() {
               W:Wheel(angle=90, brake=Brake) { }
            }
            E:Frame() {
               E:Wheel(angle=90, brake=Brake) { }
            }
            N:Arm(power=GUN, option=1600000, name=GUN) { }
         }
      }
      S:Chip() {
         W:Frame() {
            W:Wheel(angle=90, power=Engine, brake=HBrake) { }
         }
         E:Frame() {
            E:Wheel(angle=90, power=-Engine, brake=HBrake) { }
         }
      }
   }
}
Script
{
   print 0,"Welcome to Rigid-Chips World."
   print 1,"  FPS=",_FPS(),"  Chips=",_CHIPS(),"  Weight=",_WEIGHT()
   print 2,"  Width=",_WIDTH(),"  Height=",_HEIGHT()
   print 3,"  Faces=",_FACE()
   print 4,"  Vel=",_VEL()
   print 5,"  R=",_RED(32,32)
   print 6,"  G=",_GREEN(32,32)
   print 7,"  B=",_BLUE(32,32)
}
Lua
{status="ON"

function main()
INVINCIBILITY=INVINCIBILITY+_KEYDOWN(5)

inv = INVINCIBILITY
if inv<1 then
_SETTICKS(200) status="OFF"
elseif inv<2 then
_SETTICKS(148)--not sure about other values
status="ON"
elseif inv==2 then
INVINCIBILITY=0 _SETTICKS(200) status="OFF"
end


out(0,"weapon energy = ".._E(GUN).."    (1.6M)")
out(1,"controls are pretty much the same as b8test")
out(2,"x toggles invincibility")
out(3,"invincibility = "..status)
out(4,"you'll need to turn off invincibility to shoot guns. ces't la vie...")
end}
avatar
RA2lover
Walker
Walker

Posts : 382
Join date : 2010-10-11
Age : 22
Location : Brazil

View user profile

Back to top Go down

Re: the invincible model

Post by MrSparks on Sun May 20, 2012 9:41 am

Excuse my outburst, but...

FUCKING BRILLIANT! That is an amazingly simple abuse of the RC engine. And it gives me an idea for a slightly more complex, more devious abuse of the same loophole that allows you to fire the gun while invincible. Well, technically, you're vulnerable during the frame when the gun is firing, but that's like a 20th of a second during which you can be hit.

Code:
// [RCD] NotABasicCarAnymore
Val
{
   BRAKE(default=0, max=80, step=80)
   ENGINE(default=0, min=-2500, max=2500, step=2500)
   GUNFIRE(default=0, max=9999999999, step=9999999999)
   HANDLE(default=0, min=-20, max=20, step=5)
   HBRAKE(default=0, max=100, step=100)
   INVINCIBILITY(default=1, max=2)
}
Key
{
   0:Engine(step=-500)
   1:Engine(step=500)
   2:Handle(step=-0.5)
   3:Handle(step=0.5)
   7:Brake(step=30), HBrake(step=20)
   8:HBrake(step=20)
}
Body
{
   Core() {
      N:Chip() {
         N:Rudder(angle=Handle) {
            W:Frame() {
               W:Wheel(angle=90, brake=Brake) { }
            }
            E:Frame() {
               E:Wheel(angle=90, brake=Brake) { }
            }
            N:Arm(power=GUNFIRE, option=1600000, name=GUN) { }
         }
      }
      S:Chip() {
         W:Frame() {
            W:Wheel(angle=90, power=Engine, brake=HBrake) { }
         }
         E:Frame() {
            E:Wheel(angle=90, power=-Engine, brake=HBrake) { }
         }
      }
   }
}
Lua
{status="ON"

function main()
INVINCIBILITY=INVINCIBILITY+_KEYDOWN(5)

inv = INVINCIBILITY
if inv<1 then
   _SETTICKS(200)
   if _E(GUN)==1600000 and _KEY(4)==1 then
      status="FIRING"
      GUNFIRE=1600000
   else
      GUNFIRE=0
      status="OFF"
   end
elseif inv<2 then
   if _E(GUN)==1600000 and _KEY(4)==1 then
      _SETTICKS(200)
      status="FIRING"
      GUNFIRE=1600000
   else
      GUNFIRE=0
      _SETTICKS(100)
      status="ON"
   end
elseif inv==2 then
   INVINCIBILITY=0
   _SETTICKS(200)
   status="OFF"
end


out(0,"weapon energy = ".._E(GUN).."    (1.6M)")
out(1,"controls are pretty much the same as b8test")
out(2,"x toggles invincibility")
out(3,"invincibility = "..status)
end}


Last edited by MrSparks on Sun May 20, 2012 9:41 am; edited 1 time in total (Reason for editing : Forgot the code box.)

MrSparks
Tank
Tank

Posts : 73
Join date : 2012-01-05
Age : 27
Location : Michigan

View user profile

Back to top Go down

Re: the invincible model

Post by Rainman on Tue May 22, 2012 5:58 pm

This is trolltastic beyond belief!

Now all we need to do is tweak it to work-while-firing for a six barreled chaingun, and then we can put it on one of my tanks and induce Pure Rage in the japanese players and their spamguns!
avatar
Rainman
Tank
Tank

Posts : 80
Join date : 2011-02-14
Age : 25
Location : New England, US

View user profile

Back to top Go down

Re: the invincible model

Post by MrSparks on Tue May 22, 2012 9:10 pm

Actually, a higher rate of fire would be detrimental to a model that is only vulnerable when it fires. The most epic troll use of this would be a car or something with a set of well concealed guns. It would seem just like an ordinary unarmed model until it had already rolled up on you and was about to unload.

As far as I know there is no kick or ban function in RCMP, so this would have semi-valid use as an administrative tool to annoy a troll to the point of ragequit. Other than that, it's just as gamebreaking as any other godmode.

Furthermore, I don't believe nobody thought of this this before. I mean, it's as blatantly obvious as it is extremely overpowered.

MrSparks
Tank
Tank

Posts : 73
Join date : 2012-01-05
Age : 27
Location : Michigan

View user profile

Back to top Go down

Re: the invincible model

Post by RA2lover on Wed May 23, 2012 10:47 am

@MrSparks:the model's online tag states whether it has arm chips or not. it's useless.
avatar
RA2lover
Walker
Walker

Posts : 382
Join date : 2010-10-11
Age : 22
Location : Brazil

View user profile

Back to top Go down

Re: the invincible model

Post by DanielLC on Wed May 23, 2012 3:49 pm

Can someone explain how this works?

DanielLC
Tank
Tank

Posts : 78
Join date : 2010-10-23

View user profile

Back to top Go down

Re: the invincible model

Post by MrSparks on Wed May 23, 2012 6:21 pm

Yes, it takes advantage of the spawn protection mechanic.
When spawn protection is active, the model cannot shoot or be shot.
Spawn protection is active when _TICKS() is less than 200.
_SETTICKS(n) sets the value of TICKS() to n.

So by forcing the value of _TICKS() to be less than 200, you become invulnerable, but cannot shoot. If you force ticks to >= 200 when you shoot and back below 200 the next frame, you're only vulnerable on the frame during which you are shooting.

MrSparks
Tank
Tank

Posts : 73
Join date : 2012-01-05
Age : 27
Location : Michigan

View user profile

Back to top Go down

Re: the invincible model

Post by RA2lover on Thu May 24, 2012 4:30 pm

less than 150, not 200
avatar
RA2lover
Walker
Walker

Posts : 382
Join date : 2010-10-11
Age : 22
Location : Brazil

View user profile

Back to top Go down

Re: the invincible model

Post by Maurice on Thu May 24, 2012 6:31 pm

Well 150 IS less than 200...
avatar
Maurice
Hover
Hover

Posts : 153
Join date : 2011-10-07
Age : 22
Location : The early 1970's

View user profile

Back to top Go down

Re: the invincible model

Post by MrSparks on Fri May 25, 2012 8:54 am

RA2lover wrote:less than 150, not 200
Huh, I thought it was 200. Oh well. 100 is safe regardless.

MrSparks
Tank
Tank

Posts : 73
Join date : 2012-01-05
Age : 27
Location : Michigan

View user profile

Back to top Go down

Re: the invincible model

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum