Total servers: 3
Who's still around? (Forum Discussion ) by ٩(͡๏̯͡๏)۶ March 17, 2019, 04:47:14 pm
78.24.233.66
Unknown
Unknown – 0lt
IP: 78.24.233.66
Game Mode:
Lives: 0
Max Kills: 0
Version: LieroX 0.56b
Players:
DE nonstop + voting
Modern Warfare1.0 – 20lt
IP: 144.76.67.162
Game Mode: Death Match
Lives: 0
Max Kills: 15
Version: OpenLieroX 0.58 rc5
Players:
US nonstop + voting
Modern Warfare1.0 – 20lt
IP: 69.12.73.163
Game Mode: Death Match
Lives: 0
Max Kills: 15
Version: OpenLieroX 0.58 rc5
Players:
Pages: [1]   Go Down

Author Topic: Need help with modmaking...  (Read 2247 times)

Hawk

Need help with modmaking...
« on: February 24, 2011, 09:46:10 am »
Yes, again...
(LieroX scripting, not gusanos)
So i got a bunch of questions i need answers to.
I'll check wiki now *pauses writing and goes to check it out*.
Not much help.

1.) Can i make different projectiles come out from one explosion? And if i can, how?
2.) How i make smoke work properly?

I'll update here soon.
Logged
The best player isn't the one with most kills every game, the best player is the one that has most fun playing.

AnubisBlessing

Re: Need help with modmaking...
« Reply #1 on: February 24, 2011, 10:07:24 am »
You can't with old scripting language (at least not pre 0.58) so you need to make a small workaround. You need to spawn projectiles as trails. I call it projectile splitting :P Consider this:

You want projectile A to spawn B and C on a timer ->
Make projectile A spawn a projectile S when the timer is out. S has a timer of 0.000001 and has a projectile trail with B and spawns C on timer.If you want to make even more projectiles, you have to split one of B and C again.

Let A be a grenade. When it detonates, it would release frags and smoke.
Code: [Select]
"Grenade" -> Special projectile -> "Frags"
                                -> "Smoke"

To add flames to the explosion, you must split either the frags or the smoke again.
Code: [Select]
"Grenade" -> Special projectile -> "Frags"
                                -> Special projectile 2 -> "Smoke"
                                                        -> "Flames



I don't know what you want to do with the smoke. Do you want to make a smoke bomb, smoking barrels or from some kind of flames?
In the case of smoke bombs it's a real pain to get to look right and even worse if you want the damage spread evenly. Although, I've heard that there is some new stuff to deal damage within a radius. It's still hard, probably
Logged

Hawk

Re: Need help with modmaking...
« Reply #2 on: February 24, 2011, 12:15:30 pm »
Thanks :)
The Smoke thingy, i'd want to make it a small smoke bomb
« Last Edit: February 24, 2011, 12:52:52 pm by Hawk »
Logged
The best player isn't the one with most kills every game, the best player is the one that has most fun playing.

AnubisBlessing

Re: Need help with modmaking...
« Reply #3 on: February 24, 2011, 11:56:23 pm »
Thanks :)
The Smoke thingy, i'd want to make it a small smoke bomb


Alright, well there are many ways to make one. A simply one from the top of my head is to let some projectile shoot out a number of spreader_1, like 50-70 depending on how big you want the cloud.
Spreader_1 have a trail with a short timer, like 10ms. The trail spawns 5-10 spreader_2 projectiles. Spreader 2 has a trail that is the smoke image thingies ;D

Now, to get it to look right you need to tweak spreader_1. Try everything you can think of - Adding or removing gravity, bounce, play around with timer variance, speed and dampening. If you are not happy with the amount of smoke, add more spreaders or shorter trail timers.

spreader_2 is basically the thickness of the 'arms' of the smoke bomb. try playing around with both and see what works for you.


Hope that helps! if you want feedback, you could always send me the mod ;D
Logged

Hawk

Re: Need help with modmaking...
« Reply #4 on: February 25, 2011, 07:38:58 am »
So if i make a projectile into a trail i make it like
Trail = TRL_PROJ ?
and how i choose what it actually is?
ah man i'm feeling so stupid now.
Logged
The best player isn't the one with most kills every game, the best player is the one that has most fun playing.

AnubisBlessing

Re: Need help with modmaking...
« Reply #5 on: February 27, 2011, 03:01:50 pm »
I suggest you take a look at LMS to begin with to get a hang of things

http://www.openlierox.net/forum/index.php?action=mgallery;sa=item;id=5470

Worry about editing textfiles later ;>

Edit: Oh, and look at the comments to fix the invalid directory problemEdit2: Also depends on your OS, apparently ;>
« Last Edit: February 27, 2011, 03:03:30 pm by AnubisBlessing »
Logged

Hawk

Re: Need help with modmaking...
« Reply #6 on: February 27, 2011, 03:32:43 pm »
i have lms and i got it working, but i prefer to use notepad for some reason ^^
Logged
The best player isn't the one with most kills every game, the best player is the one that has most fun playing.

AnubisBlessing

Re: Need help with modmaking...
« Reply #7 on: February 27, 2011, 06:38:21 pm »
i have lms and i got it working, but i prefer to use notepad for some reason ^^

If you are really into self torture, at least consider using sublime text ;> It's awesome for that kind of stuff.
http://www.sublimetext.com/2


Also, take a look at this document here
http://www.openlierox.net/wiki/index.php/Script_cheatsheet

It will give you some idea of what you can do ;>

Give a man a fish, and he is fed for the day. Teach a man to fish, and he will be fed for the rest of his life.
Logged
Pages: [1]   Go Up