View previous topic :: View next topic |
Author |
Message |
ajay

Joined: 29 Oct 2004 Posts: 295 Location: Swindon, UK
|
Posted: Tue Mar 16, 2010 8:57 pm Post subject: 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 _________________ my site |
|
Back to top |
|
 |
mh

Joined: 12 Jan 2008 Posts: 910
|
|
Back to top |
|
 |
Teiman
Joined: 03 Jun 2007 Posts: 309
|
|
Back to top |
|
 |
ajay

Joined: 29 Oct 2004 Posts: 295 Location: Swindon, UK
|
Posted: Wed Mar 17, 2010 5:21 pm Post subject: |
|
|
Thanks both, I'll have a look at it. _________________ my site |
|
Back to top |
|
 |
ajay

Joined: 29 Oct 2004 Posts: 295 Location: Swindon, UK
|
Posted: Wed Mar 17, 2010 6:34 pm Post subject: |
|
|
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 |
|
 |
Sajt
Joined: 16 Oct 2004 Posts: 1026
|
Posted: Wed Mar 17, 2010 7:52 pm Post subject: |
|
|
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 |
|
 |
ajay

Joined: 29 Oct 2004 Posts: 295 Location: Swindon, UK
|
Posted: Wed Mar 17, 2010 8:45 pm Post subject: |
|
|
That may well be it, can't check atm, will later, thanks a lot _________________ my site |
|
Back to top |
|
 |
ajay

Joined: 29 Oct 2004 Posts: 295 Location: Swindon, UK
|
Posted: Fri Mar 19, 2010 8:55 pm Post subject: |
|
|
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 |
|
 |
|