Inside3D!
     

code for different engines?

 
Post new topic   Reply to topic    Inside3d Forums Forum Index -> QuakeC Programming
View previous topic :: View next topic  
Author Message
ajay



Joined: 29 Oct 2004
Posts: 295
Location: Swindon, UK

PostPosted: Tue Mar 16, 2010 8:57 pm    Post subject: code for different engines? Reply with quote

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
_________________
my site
Back to top
View user's profile Send private message MSN Messenger
mh



Joined: 12 Jan 2008
Posts: 909

PostPosted: Tue Mar 16, 2010 9:05 pm    Post subject: Reply with quote

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
_________________
DirectQ Engine - New release 1.8.666a, 9th August 2010
MHQuake Blog (General)
Direct3D 8 Quake Engines
Back to top
View user's profile Send private message Visit poster's website
Teiman



Joined: 03 Jun 2007
Posts: 309

PostPosted: Tue Mar 16, 2010 11:43 pm    Post subject: Reply with quote

theres always teh checkextensions stuff

http://ezquake.sourceforge.net/docs/?qc
Back to top
View user's profile Send private message
ajay



Joined: 29 Oct 2004
Posts: 295
Location: Swindon, UK

PostPosted: Wed Mar 17, 2010 5:21 pm    Post subject: Reply with quote

Thanks both, I'll have a look at it.
_________________
my site
Back to top
View user's profile Send private message MSN Messenger
ajay



Joined: 29 Oct 2004
Posts: 295
Location: Swindon, UK

PostPosted: Wed Mar 17, 2010 6:34 pm    Post subject: Reply with quote

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?
_________________
my site
Back to top
View user's profile Send private message MSN Messenger
Sajt



Joined: 16 Oct 2004
Posts: 1026

PostPosted: Wed Mar 17, 2010 7:52 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
ajay



Joined: 29 Oct 2004
Posts: 295
Location: Swindon, UK

PostPosted: Wed Mar 17, 2010 8:45 pm    Post subject: Reply with quote

That may well be it, can't check atm, will later, thanks a lot
_________________
my site
Back to top
View user's profile Send private message MSN Messenger
ajay



Joined: 29 Oct 2004
Posts: 295
Location: Swindon, UK

PostPosted: Fri Mar 19, 2010 8:55 pm    Post subject: Reply with quote

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.
_________________
my site
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Inside3d Forums Forum Index -> QuakeC Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2004 phpBB Group