the invincible model
5 posters
RigidChips :: Rigid-Chips :: Files :: Works In Progress
Page 1 of 1
the invincible model
- 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}
RA2lover- Walker
- Posts : 382
Join date : 2010-10-11
Age : 29
Location : Brazil
Re: the invincible model
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.
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
- Posts : 73
Join date : 2012-01-05
Age : 33
Location : Michigan
Re: the invincible model
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!
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!
Rainman- Tank
- Posts : 80
Join date : 2011-02-14
Age : 31
Location : New England, US
Re: the invincible model
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.
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
- Posts : 73
Join date : 2012-01-05
Age : 33
Location : Michigan
Re: the invincible model
@MrSparks:the model's online tag states whether it has arm chips or not. it's useless.
RA2lover- Walker
- Posts : 382
Join date : 2010-10-11
Age : 29
Location : Brazil
Re: the invincible model
Can someone explain how this works?
DanielLC- Tank
- Posts : 78
Join date : 2010-10-23
Re: the invincible model
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.
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
- Posts : 73
Join date : 2012-01-05
Age : 33
Location : Michigan
Re: the invincible model
less than 150, not 200
RA2lover- Walker
- Posts : 382
Join date : 2010-10-11
Age : 29
Location : Brazil
Re: the invincible model
Well 150 IS less than 200...
Maurice- Hover
- Posts : 153
Join date : 2011-10-07
Age : 28
Location : The early 1970's
Re: the invincible model
Huh, I thought it was 200. Oh well. 100 is safe regardless.RA2lover wrote:less than 150, not 200
MrSparks- Tank
- Posts : 73
Join date : 2012-01-05
Age : 33
Location : Michigan
Similar topics
» model for promo vid(WTF model)
» My first all original model!
» Fighter model 1
» Light interceptor model 1
» Panauto Model A + Competizione + Imola
» My first all original model!
» Fighter model 1
» Light interceptor model 1
» Panauto Model A + Competizione + Imola
RigidChips :: Rigid-Chips :: Files :: Works In Progress
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum