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.

ForumsCog Forum → Template stuff
Template stuff
2001-08-27, 10:03 AM #1
I want to speed up a projectile => The speed is defined in a template => Templates are defined on JKL files (levels).

How can I define a template and be sure that my modification will work on all levels in general? Is it possible to define or redefine a template in a cog?
"May the SourceCode be with you..."
Nemios, MOD developer.
2001-08-27, 2:54 PM #2
You can either

1. Use ParseArg for small amount of template modificating.

2. Use static.jkl for much more to edit and more stable, but needs some trigger coding for those to work properly in multiplayer.

For 1:
ParseArg(thing, "foo=bar");
for example

proj = FireProjectile(blah, blah...);
ParseArg(proj, "vel=0/50/0");

(If you only want to boost the speed of a projectile you can just use ApplyForce(proj, someVector); )

For 2:
Get static.jkl out of res2.gob, copy and paste the world template header from another level jkl in a level.gob.

When done, get JED if you don't have yet and open up the master.tpl. You can copy and paste the original templates in the static.jkl that you want to edit and modify that as you like. For notes look in jkspec in the jkl template section, you need to paste all the parent templates as well.

And when you're done with creating new templates in static.jkl, read here to go on with the multiplayer workaround.

------------------
http://millennium.massassi.net/ - Millennium

[This message has been edited by Hideki (edited August 28, 2001).]
2001-08-27, 8:43 PM #3
MANY MANY THANKS!!! [http://forums.massassi.net/html/smile.gif]

I'll try it...

------------------
"May the SourceCode be with you..."
"May the SourceCode be with you..."
Nemios, MOD developer.

↑ Up to the top!