Index | FAQ | Search | Memberlist | Usergroups | Profile | Log in to check your private messages | Log in | Register

Flash Light -- Extremely tough question

| Inside3d Forums Forum Index -> QuakeC Programming

View previous topic :: View next topic
Author | Message
--- | ---
Baker Joined: 14 Mar 2006 Posts: 1538 |

Posted: Mon Apr 24, 2006 6:40 pm Post subject: Flash Light -- Extremely tough question |

You can make any model glow with a light in QuakeC. Is it possible to make a flashlight effect where there is no model receiving the glow effect in standard QuakeC? Like a light glow somewhere with no model present?

Back to top |

MauveBib Joined: 04 Nov 2004 Posts: 602 |

Posted: Mon Apr 24, 2006 7:02 pm Post subject: |

Sure, just make a blank sprite to be the model for the entity. _________________ Apathy Now!

Back to top |

Baker Joined: 14 Mar 2006 Posts: 1538 |

Posted: Mon Apr 24, 2006 8:22 pm Post subject: |

MauveBib wrote:
Sure, just make a blank sprite to be the model for the entity.

I was thinking of that option, but the mod in-progress doesn't require any model downloads and will be running on a server.
Are there any other workarounds that don't involve new models/sprites being utilized?

Back to top |

scar3crow Inside3D Staff Joined: 18 Jan 2005 Posts: 837 Location: Las Vegas, NV

Posted: Mon Apr 24, 2006 9:21 pm Post subject: |

In a mod of mine I simply took a setmodel line and removed the contents of the information saying which model, leaving just = ""; but kept the EF_BRIGHTLIGHT or whatnot, and I had a moving light source, with no model or sprite involved at all.

Back to top |

Baker Joined: 14 Mar 2006 Posts: 1538 |

Posted: Mon Apr 24, 2006 10:13 pm Post subject: |

scar3crow wrote:
In a mod of mine I simply took a setmodel line and removed the contents of the information saying which model, leaving just = ""; but kept the EF_BRIGHTLIGHT or whatnot, and I had a moving light source, with no model or sprite involved at all.

If that works, that would be great.
You told me you weren't a coder at all, heh.

Back to top |

Sajt Joined: 16 Oct 2004 Posts: 1026 |

Posted: Tue Apr 25, 2006 12:49 am Post subject: |

That won't work. It might in Darkplaces (not sure), or in single player (not sure). But entities with no model aren't sent over the network. You need to use a model. The best you can do is probably the nail (spike) model... _________________ 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 |

scar3crow Inside3D Staff Joined: 18 Jan 2005 Posts: 837 Location: Las Vegas, NV

Posted: Tue Apr 25, 2006 12:56 am Post subject: |

Baker - Im not =) Sajt - Heh, this was done in singleplayer DarkPlaces!

Back to top |

FrikaC Site Admin Joined: 08 Oct 2004 Posts: 947 |

Posted: Tue Apr 25, 2006 1:51 am Post subject: |

That's in DP only, normal Quake and most other engines check if the model is blank, if so it's not sent. DP adds in an additional check: if the model is blank AND there are no effects, then it is not sent. Single player never has anything to do with it, because SP is just multiplayer with maxplayers 1 and using a loopback buffer rather than a real network device.
Frame 1 of s_bubble.spr is pretty small...

Back to top |

IceDagger Joined: 19 Nov 2004 Posts: 20 |

Posted: Thu Apr 27, 2006 9:32 am Post subject: |

Yeah, I've seen a flashlight tutorial somewhere that used that sprite model.

Back to top |

Display posts from previous:

| 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