normal Posted June 1, 2002 Share Posted June 1, 2002 Three commands (right before "thedestroyer" too!), were set to only be compiled in when it was a debug release, I took the time to enable these and try them out on a multiplayer server, being a server-side only modification. I had two others join me in a game, to test these commands. First command: headexplodey Rather simple, kills you and your head flies up, and occasionally will bounce up and down. [edit]What I mean by "your head flies up", is that your head is dismembered, and given a great upper velocity. [/edit] Second command: loveandpeace This one is probably the most hilarious command i've seen in a game yet, want to kiss your opponent? this is the command to use, all you do is walk up and have your saber holstered (if that's the weapon your using). Then do "loveandpeace", it will set your animations to the kissing ones in a loop. [correction]I took a look at the code for the g2animent command, and found the correct parameters:[/correction] Third command: g2animent The command showing the greatest amount of use to me. This will spawn a pseudo-entity, that, on certain maps, will have an AI. These will act like single-player NPCs. We had some fun spawning dozens of them at the same time. =) [edit]The spawned NPCs also seem to be force resistant (you can see this in a couple screenshots, the yellow spheres)[/edit] How to use g2animent: Basic NPC Spawning: g2animent 0 ^ spawns Stormtrooper g2animent 1 ^ spawns Rodian g2animent 2 ^ spawns Jan Custom NPC Spawning: After I re-read the custom NPC spawning code, I found out what I was doing wrong, here's how to do it. g2animent 3 <alignment> <weapon> <model filename & path> <sound path> Example: [edit]corrected the example, typos.[/edit] g2animent 3 2 2 "models/players/luke/model.glm" "sound/chars/luke/misc" ^ Would spawn an NPC allied to you, using Luke's Model & Sounds, with a Light Saber. alignment: 0 - Unknown alignment, probably makes it attack everyone 1 - Evil alignment, attacks you & players 2 - Good alignment, attacks evil NPCs. weapon (updated): 0 - None 1 - Stun Baton 2 - Light Saber 3 - Bryar Pistol 4 - Blaster 5 - Disruptor 6 - Bowcaster 7 - Repeater 8 - DEMP2 9 - Fletchette 10 - Rocket Launcher 11 - Thermal Grenades 12 - Trip Mines 13 - Det Packs 14 - Emplaced Gun (?? -- Probably not safe to use) ^ from reading another post, this seems to give you the ability to "box" with your hands. 15 - Turret (?? -- Probably not safe to use) model: path & filename of a model using the humanoid animations, eg: models/players/luke/model.glm DO NOT USE MODELS THAT YOU KNOW DO NOT USE THE HUMANOID ANIMATIONS! It'll result in a crash, (I tried to spawn a protocol droid with a lightsaber.. baaad results!) sound path: Path to the sound set that will be used, eg: sound/chars/luke/misc Screenshots can be found here: http://force.tproc.org/debug/ I have put together a little .ZIP of the Modification I have created, simply extract the ZIP file to JK2INSTALLDIR\GameData It will extract three files, one file being a BAT file which will launch JK2 with the modification and start with the map ffa_bespin. Download Here: http://force.tproc.org/debug/debug.zip Link to comment Share on other sites More sharing options...
digl Posted June 1, 2002 Share Posted June 1, 2002 hehe cool find put that package together! Link to comment Share on other sites More sharing options...
psypete Posted June 1, 2002 Share Posted June 1, 2002 yes, package please! and a little more detail on how/when it is used? Link to comment Share on other sites More sharing options...
starbucks Posted June 1, 2002 Share Posted June 1, 2002 hi-larious...clone armies!!!rodian wars...if the admin spawned them at key points in ffa or duel it might make a really cool co-op situation. force 2 duelers to buddy up to stay alive. Great find! Link to comment Share on other sites More sharing options...
Artic Blade Posted June 1, 2002 Share Posted June 1, 2002 yes, force the fools to go co-op. but i think you might need ALOT of rodians to pull it off. this also opens up the possiblity of a more rpg like server. would need a stretch, but might work maybe... Link to comment Share on other sites More sharing options...
normal Posted June 1, 2002 Author Share Posted June 1, 2002 *BUMP* Edited my original post to include a link to the download. Link to comment Share on other sites More sharing options...
normal Posted June 1, 2002 Author Share Posted June 1, 2002 Originally posted by psypete yes, package please! and a little more detail on how/when it is used? Well, considering that "_DEBUG" has to be defined to enable the commands, they were just used during development of Jedi Knight II: Outcast, so they are not used anywere. Link to comment Share on other sites More sharing options...
Master0909 Posted June 1, 2002 Share Posted June 1, 2002 Call me a newbie, but can you give an example of the line we type for NPC characters in MP games... Link to comment Share on other sites More sharing options...
normal Posted June 1, 2002 Author Share Posted June 1, 2002 g2animent 0 ^ for stormtrooper g2animent 1 ^ for rodian g2animent 2 ^ for jan I'm currently figuring out how custom g2animents work.. Link to comment Share on other sites More sharing options...
ASk Posted June 1, 2002 Share Posted June 1, 2002 in your place, i wouldn't define the _DEBUG var, but alternately use #ifndef instead of #ifdef for these 3 commands only. Who knows what else the _DEBUG does It could enable some features that would slow down the game....so better use the technique that does the precise changes you need Link to comment Share on other sites More sharing options...
normal Posted June 1, 2002 Author Share Posted June 1, 2002 Originally posted by ASk in your place, i wouldn't define the _DEBUG var, but alternately use #ifndef instead of #ifdef for these 3 commands only. Who knows what else the _DEBUG does It could enable some features that would slow down the game....so better use the technique that does the precise changes you need In my modification, all I did was remove the #ifdef _DEBUG block from that section of code. So that's the only area affected. Link to comment Share on other sites More sharing options...
normal Posted June 1, 2002 Author Share Posted June 1, 2002 *BUMP* Updated first post again with full information regarding spawning custom npcs. Link to comment Share on other sites More sharing options...
Tr4c3r Posted June 1, 2002 Share Posted June 1, 2002 How come i only get an inactive storm trooper? i type /g2animent 3 for whoever but it comes up as a damn storm trooper.. devmap all is on, and stuff liek that but it wont work? help. Link to comment Share on other sites More sharing options...
normal Posted June 1, 2002 Author Share Posted June 1, 2002 Originally posted by Tr4c3r How come i only get an inactive storm trooper? i type /g2animent 3 for whoever but it comes up as a damn storm trooper.. devmap all is on, and stuff liek that but it wont work? help. Strange. a) Inactive Stormtrooper? That probably means you're using a map that dosn't have supported AI (so far i've only tested g2animent in pit & ffa_bespin, pit dosn't have AI, ffa_bespin does). b) Stormtrooper? sounds like you're not specifying the correct parameters. Link to comment Share on other sites More sharing options...
Tr4c3r Posted June 1, 2002 Share Posted June 1, 2002 i copied and pasted what u had written, into the console... tried it in ffa_bespin and ctf_bespin and duel_temple Link to comment Share on other sites More sharing options...
Midnightghoul Posted June 1, 2002 Share Posted June 1, 2002 ok, i did exactly what it said and it is still not working! Can you give me better instructions on what to do? Link to comment Share on other sites More sharing options...
normal Posted June 1, 2002 Author Share Posted June 1, 2002 Guys, I made a couple errors in the custom NPC example, please re-read it, and try again, if it still dosn't work. I havn't the faintest clue. Link to comment Share on other sites More sharing options...
ZeroXcape Posted June 1, 2002 Share Posted June 1, 2002 If someone takes a good picture of loveandpeace, i'll throw it on the screen of the month/week/day/etc heh Try and get a side view Link to comment Share on other sites More sharing options...
Leagle Posted June 1, 2002 Share Posted June 1, 2002 . Link to comment Share on other sites More sharing options...
joey_kool Posted June 1, 2002 Share Posted June 1, 2002 Nice! Here are my findings and what i've done... What I did was tested out a few maps with g2animates 2 (Jan) and g2animate 3 0 (Stormies) and it was an every man for himself situation, as you can see from this shot. What was really interesting was that Jan (and all of her twins who survived) followed some sort of path around the map (and this is true of most of the MP maps). Because there were so many of her, a lot got stuck in doors etc. Take a look at this demo... http://www.soundflounder.com/demos/jan.dm_15 You will have to put this into the demos directory in your game directory. Actually, you might have to install the mod that normal made (link in original post by him) and then put it into his gamedata/debug/demos folder for it to work. I'm not sure as I haven't tested it. Link to comment Share on other sites More sharing options...
normal Posted June 1, 2002 Author Share Posted June 1, 2002 I wouldn't think it would require the modification, as it is a server-side type modification, but who knows Link to comment Share on other sites More sharing options...
Khayman Posted June 1, 2002 Share Posted June 1, 2002 no matter what command I use (ie g2animent <anything>) it always spawns a stormtrooper. Any help would be great Link to comment Share on other sites More sharing options...
normal Posted June 1, 2002 Author Share Posted June 1, 2002 Originally posted by Khayman no matter what command I use (ie g2animent <anything>) it always spawns a stormtrooper. Any help would be great Wha...? That's weird.. I don't know why it would do that.. hmm.. Link to comment Share on other sites More sharing options...
Mithiril Posted June 1, 2002 Share Posted June 1, 2002 can't you spawn things like reborn? All I can get is the stormy, jan and rodian Link to comment Share on other sites More sharing options...
dimi30 Posted June 1, 2002 Share Posted June 1, 2002 Using g2animent when I put anything over 3 it will give a stormtrooper with a bayar and jan's voice On custom npcs when I specify as their weapon the lightsaber they will just hold it strangely, won't turn it on, will go near the enemy and do nothing. Even the example on the original post with Luke won't work. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.