Is there any way to resize actors? [Solved] "The hard coded ones?"
#1 Posted 29 May 2011 - 08:18 PM
#2 Posted 30 May 2011 - 02:30 AM
On the matter of minibosses, you'll either have to include a custom con file which redefines the health of the minibosses, or an easier option would be to use the DukePlus mod, which gives them health automatically, and gives a lot of other cool mapping features. Basically everyone has a copy of the DukePlus mod, so it won't be an issue for you to use that.
#3 Posted 30 May 2011 - 12:02 PM
#4 Posted 30 May 2011 - 12:12 PM
Jhect, on 30 May 2011 - 12:02 PM, said:
all i want to do is make a giant boss in my map thats all
#5 Posted 30 May 2011 - 12:13 PM
Micky C, on 30 May 2011 - 02:30 AM, said:
On the matter of minibosses, you'll either have to include a custom con file which redefines the health of the minibosses, or an easier option would be to use the DukePlus mod, which gives them health automatically, and gives a lot of other cool mapping features. Basically everyone has a copy of the DukePlus mod, so it won't be an issue for you to use that.
so how do i add a custom con file then? id like to know that
#6 Posted 30 May 2011 - 08:48 PM
It's also much simpler than you think, just because it's a mod doesn't mean you have to do anything extra.
Just put the mini bosses in the map as usual and it'll work in game no worries, when playing with dukeplus.
However if you still want to include a custom con, which I don't recommend, then you'll need to find one or write your own. That means you'll probably have to find one that someone has already written one since you wouldn't know the con language. I think there's one by Ryan Lennox and the Duke Nukem Repository but I could be mistaken. Then you'll have to write a bat file. Open up notepad and write "eduke32.exe -x(con name)" without quotation marks. And save it as "something.bat"
Now do you still want to include a custom con?
This post has been edited by Micky C: 30 May 2011 - 08:51 PM
#7 Posted 30 May 2011 - 10:15 PM
gamevar KEEPSIZE 0 2 gamevar XSIZE 0 2 gamevar YSIZE 0 2 gamevar TEMP 0 0 onevent EVENT_LOADACTOR getactor[THISACTOR].extra KEEPSIZE getactor[THISACTOR].xrepeat XSIZE getactor[THISACTOR].yrepeat YSIZE endevent onevent EVENT_EGS ifspawnedby RESPAWN { getactor[THISACTOR].owner TEMP getactorvar[TEMP].KEEPSIZE KEEPSIZE getactorvar[TEMP].XSIZE XSIZE getactorvar[TEMP].YSIZE YSIZE // pass on information from the RESPAWN to the sprite it spawns } endevent onevent EVENT_GAME ifvare KEEPSIZE 1 { setactor[THISACTOR].xrepeat XSIZE setactor[THISACTOR].yrepeat YSIZE // we wait until EVENT_GAME to do this, because we want our code to resize AFTER the hardcoded resizing } getactor[THISACTOR].htflags TEMP orvar TEMP 128 setactor[THISACTOR].htflags TEMP // this last part is important because it prevents the sprite from getting resized more than once; we want to allow monsters to get shrunk, etc. endevent
Open up GAME.CON in a text editor, insert the code above at the beginning of the file (or at the end, or in any number of other places), and it should work. You have to set EXTRA to 1 on the sprite or the RESPAWN (press 'M on the sprite to edit EXTRA), and then it will retain the size you set in the map editor.
#8 Posted 31 May 2011 - 02:09 AM
Micky C, on 30 May 2011 - 08:48 PM, said:
It's also much simpler than you think, just because it's a mod doesn't mean you have to do anything extra.
Just put the mini bosses in the map as usual and it'll work in game no worries, when playing with dukeplus.
However if you still want to include a custom con, which I don't recommend, then you'll need to find one or write your own. That means you'll probably have to find one that someone has already written one since you wouldn't know the con language. I think there's one by Ryan Lennox and the Duke Nukem Repository but I could be mistaken. Then you'll have to write a bat file. Open up notepad and write "eduke32.exe -x(con name)" without quotation marks. And save it as "something.bat"
Now do you still want to include a custom con?
Jesus christ. You say i am next to useless, then you go give him crappy information. I guess that means you are 100% useless. haha.
#9 Posted 31 May 2011 - 02:58 AM
However the information I gave to actually run the custom con at the bottom of my last post is still valid.
#10 Posted 31 May 2011 - 04:15 PM
Micky C, on 31 May 2011 - 02:58 AM, said:
However the information I gave to actually run the custom con at the bottom of my last post is still valid.
i want to play on Yang with it . i dont want duke plus lol
#11 Posted 31 May 2011 - 04:17 PM
DeeperThought, on 30 May 2011 - 10:15 PM, said:
gamevar KEEPSIZE 0 2 gamevar XSIZE 0 2 gamevar YSIZE 0 2 gamevar TEMP 0 0 onevent EVENT_LOADACTOR getactor[THISACTOR].extra KEEPSIZE getactor[THISACTOR].xrepeat XSIZE getactor[THISACTOR].yrepeat YSIZE endevent onevent EVENT_EGS ifspawnedby RESPAWN { getactor[THISACTOR].owner TEMP getactorvar[TEMP].KEEPSIZE KEEPSIZE getactorvar[TEMP].XSIZE XSIZE getactorvar[TEMP].YSIZE YSIZE // pass on information from the RESPAWN to the sprite it spawns } endevent onevent EVENT_GAME ifvare KEEPSIZE 1 { setactor[THISACTOR].xrepeat XSIZE setactor[THISACTOR].yrepeat YSIZE // we wait until EVENT_GAME to do this, because we want our code to resize AFTER the hardcoded resizing } getactor[THISACTOR].htflags TEMP orvar TEMP 128 setactor[THISACTOR].htflags TEMP // this last part is important because it prevents the sprite from getting resized more than once; we want to allow monsters to get shrunk, etc. endevent
Open up GAME.CON in a text editor, insert the code above at the beginning of the file (or at the end, or in any number of other places), and it should work. You have to set EXTRA to 1 on the sprite or the RESPAWN (press 'M on the sprite to edit EXTRA), and then it will retain the size you set in the map editor.
will it work even ingame? or even online on yang? without them to download some mod?
#12 Posted 31 May 2011 - 05:44 PM
DJHellray, on 31 May 2011 - 04:17 PM, said:
Yes it works in game, that's the whole point. As for online: the other players need to be using the same modified GAME.CON that you are using.
#13 Posted 01 June 2011 - 06:23 PM
DeeperThought, on 31 May 2011 - 05:44 PM, said:
oh i see, thanks for your help.
btw if i wanna make download a modified game.com to ppl can they download from yang or they need to download from the internet?
#14 Posted 01 June 2011 - 07:32 PM
DJHellray, on 01 June 2011 - 06:23 PM, said:
btw if i wanna make download a modified game.com to ppl can they download from yang or they need to download from the internet?
IIRC you can set up yang so it sends them the files.
#15 Posted 04 June 2011 - 10:12 PM
This post has been edited by DJHellray: 04 June 2011 - 10:50 PM
#17 Posted 04 June 2011 - 11:42 PM
#18 Posted 27 June 2011 - 11:20 PM
Is a con code you must // or remove sizeat.
You remove sizeat xx xx.
Then sprite will accept any size.
Or other con codes like he posted.
This post has been edited by Zaxtor: 27 June 2011 - 11:22 PM