Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsShowcase → Incredibly Accurate Blocking [JK]
Incredibly Accurate Blocking [JK]
2003-12-29, 6:46 PM #1
Several times now people have tried to make a mod where among other things, you actually block where you're attacked.

Among other things, Randsaber 2 now has that.

You coggers might want to know how, so here goes. First, I took some inconsequential template like _powerup. I fired one straight forward, one straight to the right, and one straight up in the Damaged section.

Then I took the thingviewdot from those templates to what damaged you. I stored the three thingviewdots as separate flexes. Then I went through to each one - if it was over 0.5 it rounded to one, under -0.5 rounded to -1, if it was between it rounded to 0.

Then I used every possible combination and gave it the proper key.
Example:
Code:
if(forward == 1 && up == 0 && right == 0) key=kyblockforward;
if(forward == 1 && up == 0 && right == 1) key=kyblockfright;
if(forward == 1 && up == 0 && right==-1) key=kyblockfleft;


Repeat untill all combinations are exhausted, provided they have the proper keys, and you'll have hyperaccurate blocking, better than JO or JA even.

Also, since if you picture the thingviewdot radii, everything actually overlaps, so you'll always have a key.

Enjoy.

------------------
Duel Zero key count: Zero! Down to guns and forces. Expect a release soon.
2003-12-29, 6:56 PM #2
Man babies? No? Yes?

------------------
Et E'llo Endorenna ut / Sinome maruvan ar Hildinyar tenn' / Ambar-metta!
(This IS[/b] SAJN_Master)
Someone wrote this over one of the urinals: "The joke isn't on the wall; it's in your hand." - BV
2003-12-29, 7:14 PM #3
Pure, 100%, sex.


(Pics? [http://forums.massassi.net/html/biggrin.gif])

------------------
The future is here, and all bets are off.
And when the moment is right, I'm gonna fly a kite.
2003-12-29, 7:16 PM #4
Quote:
<font face="Verdana, Arial" size="2">Originally posted by GBK:
Pure, 100%, sex.

</font>


WHERE!!
Code:
if(getThingFlags(source) & 0x8){
  do her}
elseif(getThingFlags(source) & 0x4){
  do other babe}
else{
  do a dude}
2003-12-29, 7:56 PM #5
Ok, technical difficulties for a sec.

I'll showcase it in nothin' flat if you guys will do me a favor.

See, the way it works is that the thingviewdot is modified so straight in front is 1 and straight behind is 0, straight to the side is 0.5.

Then, I take my odds of blocking (rand()), and if they're lower than the thingviewdot, you block.

In the mod, you have a min force of 0 and a max force of 100.

Somehow, I need to work these two into each other so that at 100 force, the odds are always less than the block radius (full circle blocking), and at no force you can't really block worth a crap.

Also, it needs to have some randomness to the perimeter in between.

I may have thought of something, but go ahead and see what you guys can do.

------------------
Duel Zero key count: Zero! Down to guns and forces. Expect a release soon.

[This message has been edited by Checksum (edited December 29, 2003).]
2003-12-30, 12:43 AM #6
Quote:
<font face="Verdana, Arial" size="2">Originally posted by Checksum:
Ok, technical difficulties for a sec.

I'll showcase it in nothin' flat if you guys will do me a favor.

See, the way it works is that the thingviewdot is modified so straight in front is 1 and straight behind is 0, straight to the side is 0.5.

Then, I take my odds of blocking (rand()), and if they're lower than the thingviewdot, you block.

In the mod, you have a min force of 0 and a max force of 100.

Somehow, I need to work these two into each other so that at 100 force, the odds are always less than the block radius (full circle blocking), and at no force you can't really block worth a crap.

Also, it needs to have some randomness to the perimeter in between.

I may have thought of something, but go ahead and see what you guys can do.

</font>


I just woke up, so sorry if i don't make any sense...

Odds = rand();
ThingViewDot(); = between 0 & 1
Force = Between 0 & 100

asdf = force / 100
qwerty = (rand() + 1 * asdf) / asdf

NewOdds = Odds / qwerty

Let's say the first rand() (odds) was 0.463, and second (qwerty) was 0.7. ThingViewDot() is 0.58, Force is:

a) 80
b) 30

a) would be 0,64367816091954022988505747126437, bigger than thingViewDot() this time.

b) would be 0,37540540540540540540540540540551

Bah. Ignore me.

------------------
ILLEGAL PORNOGRAPHIC VIDEOS NEWEST GAMES MP3Z AND MOVIES!!!
Last edited by mb; today at 10:55 AM.
2003-12-30, 7:25 AM #7
So... confusing... [http://forums.massassi.net/html/eek.gif]
DO NOT WANT.
2003-12-30, 8:42 AM #8
I suppose for now I'll make it so that if you're hit while crouching or something, you get 360 degree blocking. Or something.

Bah, I dunno.

------------------
Duel Zero key count: Zero! Down to guns and forces. Expect a release soon.
2003-12-30, 8:44 AM #9
Quote:
<font face="Verdana, Arial" size="2">Originally posted by Checksum:
I suppose for now I'll make it so that if you're hit while crouching or something, you get 360 degree blocking. Or something.

Bah, I dunno.

</font>


Why not make it so that if your odds are bigger than ThingViewDot(); you block? Then you could use my method

------------------
ILLEGAL PORNOGRAPHIC VIDEOS NEWEST GAMES MP3Z AND MOVIES!!!
Last edited by mb; today at 10:55 AM.
2003-12-30, 10:29 AM #10
OOOH... Is that how that's supposed to work?

That explains a lot...

While we're at it, what's the flag you can clear to stop people from turning side to side at all?
------------------
Duel Zero key count: Zero! Down to guns and forces. Expect a release soon.

[This message has been edited by Checksum (edited December 30, 2003).]
2003-12-30, 1:27 PM #11
*waiting for screenshots, video, or any actual proof that this is somehow better than JA's sabers* [http://forums.massassi.net/html/smile.gif]

------------------
There are two asses in Massassi... and I'm one of them.
The Matrix Unplugged|The Valley of the Jedi Tower|Smaug's Lair
2003-12-30, 8:24 PM #12
You're on AIM, I could just send it to you.

------------------
Duel Zero key count: Zero! Down to guns and forces. Expect a release soon.
2003-12-31, 3:22 AM #13
Quote:
<font face="Verdana, Arial" size="2">Originally posted by Cazor:
*waiting for screenshots, video, or any actual proof that this is somehow better than JA's sabers* [http://forums.massassi.net/html/smile.gif]

</font>


nothing's better then JA's sabers, but.. this could be better then JA's blocking

------------------
" You killed me. That wasn't very nice."
Noble Gases
Holy soap opera Batman. - FGR
DARWIN WILL PREVENT THE DOWNFALL OF OUR RACE. - Rob
Free Jin!
2003-12-31, 6:12 AM #14
How can it be? The SITH engine wouldn't ever let you get close to the blocking accuracy in JA!

------------------
Bassoon, n. A brazen instrument into which a fool blows out his brains.
Bassoon, n. A brazen instrument into which a fool blows out his brains.
2003-12-31, 8:06 PM #15
Well Emon, JA blocking will sometimes have you block on the wrong side and stuff.

I hooked it up using a complex system of thingviewdots to get the thing's position (up/down, left/right, and up/down) in relation to the player (including head pitch).

It's outlined in the original post, check it out.

A few folks have tried it with me, you can ask them.

------------------
Duel Zero key count: Zero! Down to guns and forces. Expect a release soon.

[This message has been edited by Checksum (edited December 31, 2003).]
2004-01-01, 5:35 AM #16
Perhaps in MP without mods, but not in SP.

But anyway, your system looks really cool.

------------------
Bassoon, n. A brazen instrument into which a fool blows out his brains.

[This message has been edited by Emon (edited January 01, 2004).]
Bassoon, n. A brazen instrument into which a fool blows out his brains.
2004-01-01, 1:57 PM #17
I decided to take it out of Randsaber for bug issues, but I might release the beta with this kind of blocking just to prove it.

------------------
Duel Zero key count: Zero! Down to guns and forces. Expect a release soon.

[This message has been edited by Checksum (edited January 01, 2004).]
2004-01-02, 5:18 AM #18
This just proves that CaveDemon is in fact a drunken Finnish math genius.
Cordially,
Lord Tiberius Grismath
1473 for '1337' posts.
2004-01-03, 1:38 PM #19
Quote:
<font face="Verdana, Arial" size="2">Originally posted by Lord_Grismath:
This just proves that CaveDemon is in fact a drunken Finnish math genius.</font>


Damn right, i was drunk when i wrote that [http://forums.massassi.net/html/biggrin.gif]

------------------
ILLEGAL PORNOGRAPHIC VIDEOS NEWEST GAMES MP3Z AND MOVIES!!!
Last edited by mb; today at 10:55 AM.

↑ Up to the top!