News | Forum | People | FAQ | Links | Search | Register | Log in
Mapping Help
This is the place to ask about mapping problems, techniques, and bug fixing, and pretty much anything else you want to do in the level editor.

For questions about coding, check out the Coding Help thread: https://www.celephais.net/board/view_thread.php?id=60097
First | Previous | Next | Last
Metlslime 
Remember that you can put eprint(self); in the spawn function of various things that use bmodels, and then compare them to what you think they should be.

Question for the coders, though: can you make the sound follow it around? 
To Clarify 
can you make the sound follow it around with code changes? 
Progs Changes Or Exe Changes? 
no & yes respectively 
Sounds Promising 
Feel free to expand on both... 
Lardarse 
without modifying the exe, sounds cannot follow an entity.

they are just spawned in at whatever entity it is tied to's origin.

this is the kind of thing i mean about id being lazy about sound in their engines.

another example would be quake 3 having doppler shift, but doom3 NOT having it. they actually took a step back... 
Progs Way 
You can hack it in the progs too, for a reasonable return. The easiest way to do it is spawn a new entity with the platform, the "func_plat_sounddummy", so that the platform's enemy is the sounddummy and the sounddummy's owner is the platform. Then in plat_go_up and plat_go_down you replace the sound call with:

local entity oself;
oself = self;
self = self.enemy;

self.air_finished = time;
self.cnt = 0;
sounddummy_play();

self = oself;

Above them define:

void() sounddummy_play =
{
setorigin(self, (self.owner.absmin + self.owner.absmax) * 0.5);
sound (self, 1, self.noise, 1, ATTN_NORM);
self.cnt = self.cnt + 1;
self.nextthink = self.air_finished + 1.4 * self.cnt;
self.think = sounddummy_play;
}

Notice the unusual way to calculate the nextthink time, this makes the sounds play at as close to regular intervals as the discrete frames allow.

Similarly in plat_hit_top and bottom replace the sound call with

local entity oself;
oself = self;
self = self.enemy;
sounddummy_stop();
self = oself;

and define

void() sounddummy_stop =
{
setorigin(self, (self.owner.absmin + self.owner.absmax) * 0.5);
sound (self, 1, self.noise1, 1, ATTN_NORM);

self.nextthink = -1;
self.think = SUB_Null;
}


Then the sound gets restarted every 1.4 seconds. Of course, this isn't quite the same as the looping sound quake does usually, since it always plays from the beginning, and doesn't wait until the end to restart. But on a lift you can probably create a sound which sounds ok looped like this.

Further improvements would be to dynamically create the sounddummy and remove it once the lift has come to a halt(AND the halting sound has been given time to finish). Also making the looping time customisable/better fitted to your selected sound.

Of course, the best improvement would be to save the extra entity entirely. Unfortunately to do that you need to make the lift perform a number of "think" operations before it reaches it's destination, while remembering that it needs a "think" function for it's arrival at the final destination(see SUB_CalcMoveDone for the details of that). Add to that the fact that you have to work with self.ltime rather than time, and think about what happens to the sound if you're blocked(probably best to make the original sound a looping sample, but not to rethink - if you're blocked then the sound can afford to come from the same place until the lift is unblocked). So it's a much tougher proposition to get right. 
 
The duplicate entity moving in the opposite direction worked. Hooray! 
Game_text 
if anyone's mapped for half-life and knows what im talking about is it possible to get game_text into my quake maps? 
Yes 
The map "Visions of Hatred" of Darin McNeal has a CCK.
A kind of Cut-Scene Construktion Kit.

Included is the 'Cut-scene Construction Kit' I developed for this level.
It allows the inclusion of scripted cut-scenes into quake levels."

http://www.quaddicted.com/reviews/vision.xml 
Lighting 
I am lighting a static model with a 'light' entity using 'mangle'. It lights the background but not the model.

If I then use 'light' without 'mangle' (default light value in both cases) the model it lit perfectly, albeit that so is a lot of the surrounding area, which I do not want (atmosphere, don't you know!).

So, I suppose my question is: could it be something to do with the (mangled) light's cone not covering the whole of the model's bounding box? Or is some other "undocumented feature" at work here? 
Yes 
The surface below the model has to be lit properly. Maybe you can achive roughly the same effect as mangled lights by using multiple weaker lights with higher wait values. 
Thanks Negke 
A mixture of two lights, one 'mangled' and the other, a plain light, lighting the floor below, looks just about right.

Only another 1000 or so lights to go... 
Custents Mod - Func_rotating_door 
hey, iv made a door using the "func_rotating_door" solid class entitie and it just makes the brush disappear its no long there ingame... what am i doing wrong? could someone help me and tell me how im supposed to use it? thanks 
 
only some compilers can properly compile a map with a rotating brush. try aguire's compile tools. 
 
Frikac's cant? 
 
nvm thats qc sorry -.- 
 
No, his aquires compile tools did not help... maybe im making the door wrong?

all i did was make a door shaped brush and tied it to func_rotating_door 
Hip Rotating 
func_rotate_door = info_rotate + rotate_object 
 
so when i make the func_rotating_door i should use it like a origin brush? 
Sumthin' Like This 
CZG's Instructions For Making A HIPNOTIC Rotating Entity 
 
WoW all of that just for a rotating door? 
Yeah 
in the quake 1 engine, rotating brushes are basically just a colossal hack. 
Sound Channel Selection 
How can I set a channel for a sound I want to play in a map that is Quoth2-based. I read Kell's tutorial, but nothing is explained about channel setting... 
I Checked 
and you're right. the omission in question is:
A sound channel on which to play the sound can be set, with values from 0 -> 7. Default is 0.

the key you use for that is 'impulse'. 
First | Previous | Next | Last
You must be logged in to post in this thread.
Website copyright © 2002-2024 John Fitzgibbons. All posts are copyright their respective authors.