PDA

View Full Version : eduke con editing


bobbrisard2k
10-03-2002, 03:38 PM
hi , i want editing the jibs and scrap code in eduke
cant you help me ??? images/icons/confused.gif

thank images/icons/smile.gif

Usurper
10-03-2002, 04:13 PM
It's hard coded. You'll have to code your own jibs and scrap from scratch if you want to change their behavior.

jimbob
10-04-2002, 05:21 AM
but you can set the amount of scrap and jibs in the game.con

bobbrisard2k
10-04-2002, 10:23 AM
how ? im not a strong coder images/icons/frown.gif

jimbob
10-05-2002, 06:19 AM
look for state standard_jibs there should be an name like jibs JIBS1 followed by an number that number is the amount same goes for scrap

bobbrisard2k
10-05-2002, 06:34 AM
well..... thank for your help but my question is how to create my jibs code ???

jimbob
10-05-2002, 08:43 PM
make some art (or use existing) and this is just something quick out of my head but should do

define NEWJIB (number of the art tile here)
move JIBSSQUIRT1 100 -50 (the 2 number are x and y axis the last minus should make it fly up not sure though)
move JIBSSQUIRT2 90 -40 (more random flying)
move JIBSSQUIRT3 80 -30
move JIBSSQUIRT4 70 -20
action JIBSSQUIRTS 0 4 1 1 10

state JIBQUIRTINGSTATE ( the state initialised later)
sizeto 50 50 (if you want to make the blood "grow")
ifrnd 64 move BLOODSQUIRT1 else
ifrnd 64 move BLOODSQUIRT2 else
ifrnd 64 move BLOODSQUIRT3 else
ifrnd 64 move BLOODSQUIRT4
ifcount 50 { killit } else (should kill it after +- 5 secs)
iffloordistl 4 { killit }
ends
(now the actual actor)
useractor notenemy NEWJIB 0
action JIBSQUIRTS
state JIBSQUIRTINGSTATE
enda

this should do it if not tweak it a little its the best i could think of in 5 min images/icons/smile.gif
hope it works

[ 10-05-2002, 08:48 PM: Message edited by: jimbob ]

bobbrisard2k
10-10-2002, 03:08 PM
thank for your help :-D
to use the new jibs , i must use "spawn" ?

ex : spawn "newjibs"

jimbob
10-10-2002, 05:49 PM
yes like this

search for actor BLOOD and type this right above enda

else
ifrnd 12 (can be any number the more the bloodier but too much lags or results in the too many sprites spawned error so dont overdo this)
{ spawn NEWJIBS }

that should do the trick now your jibs fly off every enemy so no need to code every single enemy images/icons/smile.gif

jimbob
10-10-2002, 05:51 PM
Originally posted by jimbob:

useractor notenemy NEWJIB 0
fall
action JIBSQUIRTS
state JIBSQUIRTINGSTATE
enda
<font size="2" face="Verdana, Arial">forgot to put the fall command in so it doesnt keep flying up