code for different engines?
Moderator: InsideQC Admins
8 posts
• Page 1 of 1
code for different engines?
Is it possible to run a particular piece of code dependent on what engine is being used? I ask as the flashlight I'm using only works with DP and I'd like to keep it. However it would be cool for the code to check the engine and run a different flashlight if not DP.
Cool, but not possible? Or is it?
cheers
Cool, but not possible? Or is it?
cheers
-

ajay - Posts: 559
- Joined: Fri Oct 29, 2004 6:44 am
- Location: Swindon, UK
You could check for DP extensions in your QC I suppose. Have a look here for sample code: http://www.quake-1.com/docs/quakesrc.org/140.html#part3
We had the power, we had the space, we had a sense of time and place
We knew the words, we knew the score, we knew what we were fighting for
We knew the words, we knew the score, we knew what we were fighting for
-

mh - Posts: 2292
- Joined: Sat Jan 12, 2008 1:38 am
Is there any reason why Fitzquake, TQ wouldn't be able to show the flashlight in this http://www.inside3d.com/showtutorial.php?id=119 tutorial?
It works with DP and isn't dependent on extensions, so not sure why it doesn't work?
It works with DP and isn't dependent on extensions, so not sure why it doesn't work?
-

ajay - Posts: 559
- Joined: Fri Oct 29, 2004 6:44 am
- Location: Swindon, UK
Did you remove the bubble sprite? An entity without a model won't be networked so it won't make its way to the client (DarkPlaces probably looks at more fields, but most engines just look at model). If you have a null.mdl lying around you should use that.
F. A. Špork, an enlightened nobleman and a great patron of art, had a stately Baroque spa complex built on the banks of the River Labe.
- Sajt
- Posts: 1215
- Joined: Sat Oct 16, 2004 3:39 am
Bugger. Having spawn/precache problems. Tried precaching null.mdl all over the place (world, in the flash code etc) but just getting errors. I've done this before but cannot for the life of me remember how. Fool.
EDIT: solved that, but now I remember why I went for the DP dependent flashlight, the one from the tut is less smooth and realistic, and, in Fitzquake anyhow, has a weird yellow glow??
I'm using Fitzquake primarily now as my laptop struggles with DP in anything over 640x480.
EDIT: solved that, but now I remember why I went for the DP dependent flashlight, the one from the tut is less smooth and realistic, and, in Fitzquake anyhow, has a weird yellow glow??
I'm using Fitzquake primarily now as my laptop struggles with DP in anything over 640x480.
-

ajay - Posts: 559
- Joined: Fri Oct 29, 2004 6:44 am
- Location: Swindon, UK
8 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest