people playing: 104, servers online: 34, games played: 136,894,653 Top Player: Savior4

  Toribash Community » Toribash » Mods
Register FAQ General Rules Community
Reply
 
Thread Tools Display Modes
Old Jul 23, 2011   #1
Smilies2
Member
 
Some Kinda Belt
Join Date: Jul 2007
Posts: 421
Clan: NO



~ Modding Tools ~
This thread is for "base" or default mods which include some useful concepts for a wide variety of mods.

Tools

Balance System

Most people have played or seen a mod with a balance system before. It was a concept first proposed by Skazz and subsequently, I developed the first balance system for 49realtoriboxing.tbm. (first mod uploaded to the mod uploader) Usually people think it works by using heavier feet but this is not the case.

The balance system uses opposing thrusts to keep the player upright. By placing upward thrust on the player's upper body and downward thrust on the player's lower body, the body will always straighten out when tilted at any degree.

This effect allows for the player to move efficiently without focusing on balancing with a variety of applications. (Sports, Parkour, Sparring or other realistic fighting mods)

I've attached a balance system mod tool to the post (MTBalance.tbm). It is a balance system which is configured for -35 gravity. Unlike most systems, it allows for excellent balancing without restricting freedom to the player, which should be useful for anyone who wants to apply it to their mod.

Keep in mind that a balance system must be configured when the gravity is changed. It becomes weaker as gravity increases and stronger as gravity decreases.

Triggers

Developed by hampa, it allows for alternate win conditions, allowing for a huge amount of possibilities. The mod tools attached below are default 'body to body' triggers and 'body to object' triggers which can be configured for any mod.

Triggers work using the commands:

Trig_id: Literally, the identity of the trigger represented by a number.

Trig_mask: The number which indicates which identities that correspond with another trigger. For multiple identities, the id numbers are added for the mask number. (ie. a trigger which collides with id 2 or id 3 has a trig_mask of 5) Keep in mind that if multiple body parts or objects have the same identity, the corresponding trig_mask does not need to be added. (ie. a body which has and id of 1 which collides with a wall. The wall has a trig_mask of 1 instead of all the numbers combined)

Trig_action: The number (1 or 2) which indicates which player wins when the trigger is activated. Trig_action 1 makes player 1 (tori) win and Trig_action 2 makes player 2 (uke) win.

If you are still confused, here is another explanation of triggers: Clockworkmonkey's Mod Triggers Documentation


MTTriggers1.tbm- The 'body to body' default modfile. When either player hits the other with their hands or feet (including wrists/ankles), it results in a loss for the damaged player.

MTTriggers2.tbm- the triggers for the hands and feet are disabled but placed onto weapons for tori and uke. When a player hits the other with their weapon, it results in an instawin.

Laying Down/Prone

This is a prototype full body mod for tori and uke, allowing the starting position to be a laying down/ prone position. This could be useful for a wide variety of mods such as skydiving, freefalling or different types of vehicles. It has been configured to look and react like the original body position but feel free to improve the design if you can.

Unnecessary. Hampa has fixed engageplayerpos and engageplayerrot, allowing for the same orientation without the changed joint configurations.



Enjoy and ask questions if any!
Attached Files
File Type: tbm MTBalance.tbm (663 Bytes, 128 views)
File Type: tbm MTTriggers1.tbm (4.2 KB, 57 views)
File Type: tbm MTTriggers2.tbm (4.0 KB, 53 views)
File Type: tbm MTProne.tbm (2.7 KB, 55 views)
Pirate: smilies, your textures kick so much ass

<~ClockworkMonkey> sometimes, you don't try really hard and things just work out


Last edited by Smilies2; Dec 22, 2013 at 04:59 PM..
Smilies2 is offline   Reply With Quote
Old Jul 23, 2011   #2
supahninja
Forumite
 
Black Belt
Join Date: Dec 2010
Posts: 1,907



Originally Posted by Smilies2 View Post
Triggers

A recently added mod feature which only works online, Triggers. Developed by hampa, a few weeks ago and enabled server side[/B]

Awesome.
So I assume that in v4.0, it will be enabled client side so that we can do it in single player?


Originally Posted by Smilies2 View Post
MTTriggers2.tbm- the triggers for the hands and feet are disabled but placed onto weapons for tori and uke. When a player hits the other with their weapon, it results in an instawin.

Fencing.
supahninja is offline   Reply With Quote
Old Jul 23, 2011   #3
TRichard21
Forumite
 
2nd Dan Black Belt
Join Date: Dec 2010
Posts: 1,717



Thats the plan supahninja , cant wait for this to work in singleplayer so we can test it out properly .

Is there a possibility of a style of trigger where it would take two head shots to trigger a win instead of one ?
TRichard21 is offline   Reply With Quote
Old Jul 23, 2011   #4
Smilies2
Member
 
Some Kinda Belt
Join Date: Jul 2007
Posts: 421
Clan: NO



Nope. We're hoping that we could get hampa to add that or a "damage trigger" where you have to exceed a certain amount of points which results in an instawin. (for knockouts and stuff)
Pirate: smilies, your textures kick so much ass

<~ClockworkMonkey> sometimes, you don't try really hard and things just work out


Last edited by Smilies2; Jul 23, 2011 at 09:04 PM..
Smilies2 is offline   Reply With Quote
Old Jul 23, 2011   #5
TheGod
THE GOD
 
The Belt
Join Date: Dec 2007
Posts: 6,146



Originally Posted by Smilies2 View Post
Nope. We're hoping that we could get hampa to added that or a "damage trigger" where you have to exceed a certain amount of points which results in an instawin. (for knockouts and stuff)

I tell you a thrust trigger would be the best, have tori in a cockpit, if he pushes on button thrust goes to the left, if he is on the other one it goes to the right, have some for up as well.
TheGod is offline   Reply With Quote
Old Jul 27, 2011   #6
ClockworkMonkey
Senior Member
 
Legit White Belt
Join Date: Oct 2007
Posts: 884



descript.lua is wonderful for body mods.

Much faster and more accurate than notepad.

When adjusting the ranges, you can click mod editor in the bottom right corner to enter free play and test the changes (then click it again to edit again)
<the god> the god
<@Smilies2> modding tiem

ClockworkMonkey is offline   Reply With Quote
Old Aug 1, 2011   #7
Echoforce
Senior Member
 
4th Dan Black Belt
Join Date: May 2010
Posts: 1,254



Hey, I moved this to the public board, Since some people (hopefully future modders ;o) would enjoy learning how to use the triggers as well. If you have any questions, Feel free to ask in the mod questions thread.
Echoforce is offline   Reply With Quote
Old Aug 16, 2011   #8
Smilies2
Member
 
Some Kinda Belt
Join Date: Jul 2007
Posts: 421
Clan: NO



I've updated the original post with another modding tool (information and the mod is available in the OP). I'm hoping that someone will find a creative use for it.
Pirate: smilies, your textures kick so much ass

<~ClockworkMonkey> sometimes, you don't try really hard and things just work out

Smilies2 is offline   Reply With Quote
Old Aug 16, 2011   #9
TRichard21
Forumite
 
2nd Dan Black Belt
Join Date: Dec 2010
Posts: 1,717



It could prove usefull for somthing , some sort of sky diving mod
TRichard21 is offline   Reply With Quote
Old Apr 6, 2012   #10
Infraction
Member
 
3rd Dan Black Belt
Join Date: Mar 2011
Posts: 41



I've decided to start modding and wanted to kick off with a 0 gravity mod in which players have to push off two opposing walls so I expect that laying down mod will come in pretty handy - just need to contract the knees and hips slightly. Cheers for that, also I've been wondering about how the balance thing since I first saw it. Everything on this list is just made of awesomeness really =D
Infraction is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:26 AM.




Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
ragdoll fighting game physics fighting game ragdoll fighting physics funmotion joints martial arts karate pc mac free game turn based game