Author Topic: Strange insight into Soldat coding...  (Read 4681 times)

0 Members and 1 Guest are viewing this topic.

Offline Raithah

  • Camper
  • ***
  • Posts: 424
  • Life™
Strange insight into Soldat coding...
« on: January 17, 2007, 08:17:59 pm »
For a couple hours now I've been putting intensive research into a 'car-gun'; a hypothetical device that would make a Soldat move within the constraints of a quickly moving car. In the research of such an arm, I discovered a very cool fault in the way Soldat handles the LAW; in fact here it is :)

Code: [Select]
[M72 LAW]
Damage=0
FireInterval=6
Ammo=30
ReloadTime=95
Speed=-100
BulletStyle=3
StartUpTime=0
Bink=-25
MovementAcc=1

I'll give y'all a moment to try it out.

..

Done ? Well, you may have noticed that instead of it's normal behavior, the LAW fires while standing up (and to those who don't play Soldat, it's not supposed to). Whaddya think of that ?

The preferred outcome of war is peace. Ironic, huh ?
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam auctor lectus pulvinar neque. Vestibulum commodo nisl convallis nisi. Aliquam in magna. Quisque orci. Duis sed nunc eu quam egestas feugiat. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nulla auctor turpis non urna. Sed porttitor. Donec et dui non odio.

Offline Zamorak

  • Camper
  • ***
  • Posts: 475
Re: Strange insight into Soldat coding...
« Reply #1 on: January 17, 2007, 09:00:57 pm »
While I have not tried this yet, have you attributed this anomaly to the negative speed, or a combination of values?

Either way, this is a very interesting bug; but I do not believe it provides any conclusive insight into the actual formulae or operation. Instead what I can conject is that there might be a operation in which the values are used in conjuncture with the data on whether it can be fired from either position..

This leads me to suspect that while you are in a different position(prone,standing,crouching) that there is perhaps a different calculation(in this case, figuring what the weapon will be doing) for each stance.

Of course each weapon's abilities and attributes might be loaded into the server when a WM is loaded or the server initially starts.

All in all, puzzling find.
ZamoraK |2Wai|

Offline jrgp

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 5037
Re: Strange insight into Soldat coding...
« Reply #2 on: January 17, 2007, 09:41:56 pm »
Can you please post a screen of what this does? I find this interesting as hell.

Nice Find :)
There are other worlds than these

Offline Raithah

  • Camper
  • ***
  • Posts: 424
  • Life™
Re: Strange insight into Soldat coding...
« Reply #3 on: January 17, 2007, 09:51:22 pm »
Another odd thing about this; when flying in an upright position the ammo counter never falls, reloads or anything. It simply sits at it's last value. Even more perplexing (challenge: use a different synonym each post for puzzeling) is that if the soldaten collides into the ground while proned and flying, ammo is deducted. My main theory to explain this ? Blue smoke; the LAW must be missing some when it flies.

Edit: Going to go make a demo now, it'll be up in a couple minutes.

Edit2: Alrighty, the demo's up. Just convert the file-extention to .sdm and you're off. I've also included a screenshot of a collision into the ground, as the demo file doesn't contain ammo usage.

Date Posted: January 17, 2007, 06:43:34 PM
BTW, other modded weapons don't seem to be able to experience this effect; strange gun events (such as with the chainsaw) seem to be limited to special weapons.

And if you haven't ever heard of the chainsaw-glitch, try modding your saw to 500 speed and changing it's bullet-type to law. It's rather cool really :)

Edit: Sorry for not answering your question Zamorak, but from what you may have gathered I've attributed this to the gun itself and not it's values or negative speed. In fact, applying that exact mod to a different gun (say, the mp5) will result in the gun acting normaly.
« Last Edit: January 17, 2007, 09:53:07 pm by Raithah »

The preferred outcome of war is peace. Ironic, huh ?
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam auctor lectus pulvinar neque. Vestibulum commodo nisl convallis nisi. Aliquam in magna. Quisque orci. Duis sed nunc eu quam egestas feugiat. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nulla auctor turpis non urna. Sed porttitor. Donec et dui non odio.

Offline jrgp

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 5037
Re: Strange insight into Soldat coding...
« Reply #4 on: January 17, 2007, 09:54:29 pm »
Holy Shit.

That is insane, but amazing. It is amazing you found this. I think MM should be notified immediately.
There are other worlds than these

Offline Raithah

  • Camper
  • ***
  • Posts: 424
  • Life™
Re: Strange insight into Soldat coding...
« Reply #5 on: January 17, 2007, 10:05:51 pm »
While I do admit it's pretty cool, I highly doubt MM will be including a shotgun pellet, backwards firing flying LAW in any future editions of Soldat. So I can't see this as relevent :)

But hey, I'm not a coder. So what do I know (other than finding cool glitches in games) ?

The preferred outcome of war is peace. Ironic, huh ?
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam auctor lectus pulvinar neque. Vestibulum commodo nisl convallis nisi. Aliquam in magna. Quisque orci. Duis sed nunc eu quam egestas feugiat. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nulla auctor turpis non urna. Sed porttitor. Donec et dui non odio.

Offline jrgp

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 5037
Re: Strange insight into Soldat coding...
« Reply #6 on: January 17, 2007, 10:14:22 pm »
I meant MM should be notified so he can remove this bug in 1.3.2. I admit it is amazing, but I don't see why it should be included.
There are other worlds than these

Offline Nfsjunkie91

  • Camper
  • ***
  • Posts: 386
  • Just what I needed. A box of sh-t.
Re: Strange insight into Soldat coding...
« Reply #7 on: January 17, 2007, 10:20:57 pm »
Apparently, Soldat doesn't think the gun is firing. My Soldat does the head scratching animation while I'm holding the button down (this is while standing.)

Offline Raithah

  • Camper
  • ***
  • Posts: 424
  • Life™
Re: Strange insight into Soldat coding...
« Reply #8 on: January 17, 2007, 10:26:23 pm »
Really ? Well that's bad. It means that the gun is actively producing bullets (or at least messing with the physics engine) without the game knowing it. This could open up plenty of easily made hacks with wide ranging effects, so I'm hoping it doesn't not get fixed (<- Double negative).

The preferred outcome of war is peace. Ironic, huh ?
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam auctor lectus pulvinar neque. Vestibulum commodo nisl convallis nisi. Aliquam in magna. Quisque orci. Duis sed nunc eu quam egestas feugiat. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nulla auctor turpis non urna. Sed porttitor. Donec et dui non odio.

Offline VijchtiDoodah

  • Global Moderator
  • Veteran
  • *****
  • Posts: 1119
    • Stan Yeti Rave?
Re: Strange insight into Soldat coding...
« Reply #9 on: January 17, 2007, 11:27:42 pm »
I meant MM should be notified so he can remove this bug in 1.3.2. I admit it is amazing, but I don't see why it should be included.

He'd probably find it funny.  It'd be more fun if we left it in anyway.

"“The ink of the scholar is more sacred than the blood of the martyr”"

Offline FliesLikeABrick

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 6144
    • Ultimate 13 Soldat
Re: Strange insight into Soldat coding...
« Reply #10 on: January 17, 2007, 11:49:32 pm »
I meant MM should be notified so he can remove this bug in 1.3.2. I admit it is amazing, but I don't see why it should be included.

He'd probably find it funny.  It'd be more fun if we left it in anyway.

yeah, as long as it requires a weapon mod to work, there's no harm in leaving it in the game.  I'll send him an e-mail with a link here anyway.

Offline MofoNofo

  • Veteran
  • *****
  • Posts: 1019
Re: Strange insight into Soldat coding...
« Reply #11 on: January 17, 2007, 11:53:50 pm »
Haha this is awesome!

Offline Frenchie

  • Camper
  • ***
  • Posts: 358
  • SoldatHQ
Re: Strange insight into Soldat coding...
« Reply #12 on: January 18, 2007, 12:37:02 am »
Awesome!  ;D
It's got me hooked, this should be used instead of the mini in avarax hovermode things.

And cool didn't know that about the chainsaw. It's also pretty cool with weapon style set to m2 bullet.


I wonder if there are any more weapon findings...
Soldat Lobby Avec Players -New Release! - Updated AGAIN!


Offline edak

  • Flagrunner
  • ****
  • Posts: 505
  • AussiEdak
Re: Strange insight into Soldat coding...
« Reply #13 on: January 18, 2007, 02:36:52 am »
I used to think the law from the ground was better, but hey the backwards shooting makes it more fun!  make climbing maps where you need to do this!

UPDATED 12-Aug-2010 FIXED LINKS!!!!! - 18 Apr 2007 - NOW WITH FULLLY MODDABLE MAP TEXTURES! Modders, further customise your soldat!

Offline Michal Marcinkowski

  • Creator of Soldat
  • Flagrunner
  • ******
  • Posts: 808
  • I ain't got time to bleed.
    • Soldat home page
Re: Strange insight into Soldat coding...
« Reply #14 on: January 18, 2007, 03:22:36 am »
As long as it doesn't work without a mod it's fine. Can you kill somebody with the bullet on multiplayer?

Offline The Red Guy

  • Flagrunner
  • ****
  • Posts: 751
Re: Strange insight into Soldat coding...
« Reply #15 on: January 18, 2007, 04:58:51 am »
Woah! Awesome find! I'm going to play this all day.

Offline Raithah

  • Camper
  • ***
  • Posts: 424
  • Life™
Re: Strange insight into Soldat coding...
« Reply #16 on: January 18, 2007, 09:35:33 am »
Well ... you can't kill people when the damage is set to zero :) But in theory, yes. At lower speeds the bullets actualy exist and do all their funky 'Collision' and such. For some reason, though, at speeds of -20000 and up they dissapear, replaced by a little puff of what appears to be smoke.

Though to be absolutely certain, I'll go see if I can kill someone with it.

Date Posted: January 18, 2007, 06:33:44 AM
Edit: Yep, it kills alright. But only if you can catch the people while it's shooting, again for some reason it stop creating bullets a couple seconds in to firing.

The preferred outcome of war is peace. Ironic, huh ?
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam auctor lectus pulvinar neque. Vestibulum commodo nisl convallis nisi. Aliquam in magna. Quisque orci. Duis sed nunc eu quam egestas feugiat. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nulla auctor turpis non urna. Sed porttitor. Donec et dui non odio.

Offline xtishereb

  • Flagrunner
  • ****
  • Posts: 908
  • I swear, my chainsaw killed you on its own.
Re: Strange insight into Soldat coding...
« Reply #17 on: January 18, 2007, 03:15:48 pm »
The chainsaw glitch you mentioned is the DARK MAJIKS from Rambo_6's SUPERMAWD.

Works as advertised. I wonder what the factor which enabled standing up firing of the LAW was.
<3*xwd
love conquers all

Offline edak

  • Flagrunner
  • ****
  • Posts: 505
  • AussiEdak
Re: Strange insight into Soldat coding...
« Reply #18 on: January 18, 2007, 05:34:02 pm »
The chainsaw glitch you mentioned is the DARK MAJIKS from Rambo_6's SUPERMAWD.

Works as advertised. I wonder what the factor which enabled standing up firing of the LAW was.
i believe it was the negative speed that allowed this.

UPDATED 12-Aug-2010 FIXED LINKS!!!!! - 18 Apr 2007 - NOW WITH FULLLY MODDABLE MAP TEXTURES! Modders, further customise your soldat!

Offline L0n3W01f

  • Major(1)
  • Posts: 9
  • W00t Aug complete with grenade launcher FTW
Re: Strange insight into Soldat coding...
« Reply #19 on: January 18, 2007, 05:49:44 pm »
Thats a nice find there, but its kind of cheap. I mean why do you need to stand...I guess if you don't know how to get a kill kneeling/prone with it.
LΩÑ3wΩLƒ