View Full Version : MP emplaced cannon

11-26-2002, 03:45 PM
I want to put an emplaced cannon in a multiplayer level (it makes sense...really...well at least it will be fun and destructive). So I put an emplaced_gun entity in the level. Well it works fine and all, I can activate the gun and shoot it and pivot it aroundand stuff, but JKII won't draw the model. It gives an error along the lines of "cannot draw model emplaced_gun_chair.glm" or something like that. Does anyone know how to fix this? The cannons are kind of an integral part of this level.

11-27-2002, 10:33 PM
hehe i tried this too on top of a school... everything worked but ya couldnt see it. I *think* whats wrong is the glm is compiled as single player model and not mp. just a guess though

11-28-2002, 11:07 PM
Hmmm, so is there a MP model I can make it look for? Or do I have to include the single-player glm model in the multi-player pk3 file?

11-29-2002, 02:04 AM
What I tried is extracting the glm and including that but I still couldn't see it. Right now I just guessing but maybe it has to be recompiled for multiplayer. I'll look into it it would be really neat to have it in there. If u look at the options in entity view I think its respawnable too. I forget though. This is what I wanted to replace that nasty turret at the end of the hall in JHS with. Lots more playable in my view if its killable(<--is that a word?).

Hey check this out dood. I was on a 5-minute thinking tangent the other day and thought maybe it would be possible to make a thin arbitrary sided(or capped cylinder) brush and use a sun shader that emits massive amounts of light to simulate a sunrise and sunset. You'd then rotate this brush slowly on the Y-axis(X?) to enter and exit at the level's corners. Would it affect shadowing like im thinking? I've never taken time to notice in-game...

11-29-2002, 02:22 AM
THAT IS A GREAT IDEA!!!I wanted to do that in my lvl. If you get it to work, tell me.

11-29-2002, 03:02 AM
I don't think that is possible, but if I'm wrong I'd be very interested in such effect. Currently I have light emittin' shaders on the door. Well when the door opens, the light stays on the floor and every surface affected by the lightmap. So I think it's not possible to change the lightmap. Maybe if you make a shader that will emitt light like the sun is passin' over it's surface, if you know what I mean...

11-29-2002, 12:17 PM
Won't work. lighting of ents is determined at thet initial position of each ent. so you'll have a birght light moving in the sky, but shadows on the ground won't move.

nice tangent, but...

anyone have any ideas on the emplaced_gun issue?

11-29-2002, 04:34 PM
lol i tried it last night i C what u mean. Big dark room and huge yellow circle moving. that sux would have been nice though. Ill look at cannon now. If i get to work Ill send you a zip with everything if u want.

11-29-2002, 04:39 PM
oh yeah i forgot to tell ya there's also scripts to run this cannon. There's like 3 or 4 diff ones

11-29-2002, 06:01 PM
nevermind the scriptz. Hehe i got it to show up. It's damageable, but OMG now i can't use it. I forget how i did it it was several weeks ago. anyways I got it to show by extracting and copying all the imp_mine/ turret_chair pics and glm models to models/map_objects/mp directory. How did u get it to work again? Seems like i just put func_emplaced in and it was there but u couldn't see it. now that don't even work

11-29-2002, 08:01 PM
that is extremely sweet that the cannon works in mp. :O

11-30-2002, 01:16 PM
Emplacement gun in MP!!!!!! WHERE!?! How!?! I'm so excited!

11-30-2002, 02:35 PM
right-click -> emplaced > emplace_gun entity.


Does anyone know how to fix that?

11-30-2002, 06:18 PM
Dood thats what i did. but now it doesn't work. I can see it though. See the error you get in the game is R_allocsumthing failed: cannot find model models/map_objects/mp/turret_chair.glm. It's like the function emplaced_gun already looks for it there. I put the glm model and its files there and I could see it, but now I can't use it. I'll post a shot:



see I got it in game
but i didnt have to reference the model in the entitity box b/c it already looks for it apparently. try extracting and copying the turret_chair stuff to the map_object/mp directory and let me know what happens Right now I'm gonna go reinstall windoz back to 98 b/c i have the feeling XP is fooking me up somehow with this and shaderz(just a hunch).

12-03-2002, 02:44 PM
The code is looking for a different object in MP, change it to look for the SP one and it'll show up. I can't get the gun to work though, which is what I've been working on in my code.

12-04-2002, 08:27 PM
Just a bit of info--

I extracted all the turret-related models and put them in a temporary pk3 under the models/map_objects/mp/ directory where the game was looking for the model in the first place. I tried the game, and the turret showed up. I used the turret, and I was able to rotate and fire the gun. However, it left me standing where i was when I hit the use key, rather than putting me in the turret chair, and the turret model didn't rotate when I turned my view. Other than that it worked, but without that the thing seemed kind of useless.