Questions about DP
Moderator: InsideQC Admins
13 posts
• Page 1 of 1
Questions about DP
Hello Guys,
I have some more questions about the Quake Engine, specifically, the DarkPlaces engine.
1) How can we create entities? For example, under Radiant or Hammer, i would select the info_message and place it in the map. When the player walks over it, a message is displayed.
I would like to study the creation of entities, since i would be using them extensively, for example: entity_switch, that when activated, opens a door, or turns a light on/off.
2) Has anyone "ported" or developed entities and gameplay control (by entities) from the Half Life engine? Scripted sequences.
I have some more questions about the Quake Engine, specifically, the DarkPlaces engine.
1) How can we create entities? For example, under Radiant or Hammer, i would select the info_message and place it in the map. When the player walks over it, a message is displayed.
I would like to study the creation of entities, since i would be using them extensively, for example: entity_switch, that when activated, opens a door, or turns a light on/off.
2) Has anyone "ported" or developed entities and gameplay control (by entities) from the Half Life engine? Scripted sequences.
- JasonX
- Posts: 411
- Joined: Tue Apr 21, 2009 2:08 pm
Hello!
You will need to use QuakeC. Inside3D has a QuakeC tutorial section to help guide you on your way to making what you need, and you can always post questions regarding code here.
There's a section for getting you started that should hook you up with the qc source as well as a compiler.
Good luck!
You will need to use QuakeC. Inside3D has a QuakeC tutorial section to help guide you on your way to making what you need, and you can always post questions regarding code here.
There's a section for getting you started that should hook you up with the qc source as well as a compiler.
Good luck!
Benjamin Darling
http://www.bendarling.net/
Reflex - In development competitive arena fps combining modern tech with the speed, precision and freedom of 90's shooters.
http://www.reflexfps.net/
http://www.bendarling.net/
Reflex - In development competitive arena fps combining modern tech with the speed, precision and freedom of 90's shooters.
http://www.reflexfps.net/
- Electro
- Posts: 312
- Joined: Wed Dec 29, 2004 11:25 pm
- Location: Brisbane, Australia
The things you mention in 1) can be achieved by stock Quake entities: func_button or some triggers.
Improve Quaddicted, send me a pull request: https://github.com/SpiritQuaddicted/Quaddicted-reviews
- Spirit
- Posts: 1031
- Joined: Sat Nov 20, 2004 9:00 pm
I already read some QuakeC tutorials, including the "Scratch" series, although it seems to be incomplete. Were i can find the rest of it, by the way?
Regarding my questions, any tutorials regarding triggers or something? How can i verify if player is within an area and so on?
Regarding my questions, any tutorials regarding triggers or something? How can i verify if player is within an area and so on?
- JasonX
- Posts: 411
- Joined: Tue Apr 21, 2009 2:08 pm
http://hosted.planetquake.gamespy.com/w ... index.shtm
http://web.archive.org/web/200701060427 ... uide02.htm
are two handy general guides.
Also check out free/open map sources to see how things are setup: http://www.celephais.net/board/view_thread.php?id=60094
edit: if you are not interested in what Quake already has builtin but really want to code yourself, please tell me to shut up.
http://web.archive.org/web/200701060427 ... uide02.htm
are two handy general guides.
Also check out free/open map sources to see how things are setup: http://www.celephais.net/board/view_thread.php?id=60094
edit: if you are not interested in what Quake already has builtin but really want to code yourself, please tell me to shut up.
Improve Quaddicted, send me a pull request: https://github.com/SpiritQuaddicted/Quaddicted-reviews
- Spirit
- Posts: 1031
- Joined: Sat Nov 20, 2004 9:00 pm
An entity in a map has a classname, say info_message as you mentioned. This will call the void() info_message function in QC to define the characteristics of this entity, and this is how you add custom entities to a mod. By defining the function in QC you can then add an equivilent entity to your map.
Apathy Now!
-

MauveBib - Posts: 634
- Joined: Thu Nov 04, 2004 1:22 am
Spirit wrote:http://hosted.planetquake.gamespy.com/worldcraft/tutorial/index.shtm
http://web.archive.org/web/200701060427 ... uide02.htm
are two handy general guides.
Also check out free/open map sources to see how things are setup: http://www.celephais.net/board/view_thread.php?id=60094
edit: if you are not interested in what Quake already has builtin but really want to code yourself, please tell me to shut up.
That's exactly what i want, mate. In order to understand QuakeC a little better and do the things i want to do, i must be able to re-create the QuakeC source and understand what i did. That's why i loved the Scratch series, pretty much my point. Sadly, it's incomplete.
I'll be reading your suggested tutorials in the next hours, and i hope i get some info on how to make some scripted event or even some very simple entity. Thank you very much.
BTW: Anyone did this before? HL-style scripted events for Quake SP?
- JasonX
- Posts: 411
- Joined: Tue Apr 21, 2009 2:08 pm
JasonX wrote:BTW: Anyone did this before? HL-style scripted events for Quake SP?
I made a mod called Quake-Life which supports most half-life single-player entities. Scripted sequences would require full half-life model and bone animation support, so it's not included, but there is basic half-life scripting ala scritped_sentence and _sequence. One day maybe I'll make these more complete..
https://customtf.svn.sourceforge.net/sv ... fe/ql_src/
oh and PS. this only works properly on FTE. It will work on DP too but multi_manager will be screwed up. Have fun!
- avirox
- Posts: 137
- Joined: Wed Aug 16, 2006 3:25 pm
avirox wrote:JasonX wrote:BTW: Anyone did this before? HL-style scripted events for Quake SP?
I made a mod called Quake-Life which supports most half-life single-player entities. Scripted sequences would require full half-life model and bone animation support, so it's not included, but there is basic half-life scripting ala scritped_sentence and _sequence. One day maybe I'll make these more complete..
https://customtf.svn.sourceforge.net/sv ... fe/ql_src/
oh and PS. this only works properly on FTE. It will work on DP too but multi_manager will be screwed up. Have fun!
Thank you, that will be a great base for study after i get a handle of QuakeC. Regarding DP: what's the problems with multi_manager?
- JasonX
- Posts: 411
- Joined: Tue Apr 21, 2009 2:08 pm
multi_manager uses both entity fields to activate triggers on certain timers. By default, quake engines do not register any unknown fields specified in entities, and thus discard them. In Quake-Life I use an FTE "feature" which stores the entity's complete spawn info (all fields) in a string which is then parsed to glean the trigger+timer information. DP does not have said "feature". If you use .ent files you might be able to create a little hack (using FRIK_FILE) to get the info, but it would be quite dirty.
- avirox
- Posts: 137
- Joined: Wed Aug 16, 2006 3:25 pm
Well, i tried running it into DP, but lot's of problems, like buttons not opening doors, player falling outside the map (had to use no clip to test the maps), and etc. Also, initially, DP was not finding the WADs, though i fixed this by moving them to a "textures" folder.
However, even if this is not working well with DP, i'll study the code a little bit, because that's what i was looking for. Thank you for the great piece of code, avirox.
However, even if this is not working well with DP, i'll study the code a little bit, because that's what i was looking for. Thank you for the great piece of code, avirox.
- JasonX
- Posts: 411
- Joined: Tue Apr 21, 2009 2:08 pm
JasonX wrote:Well, i tried running it into DP, but lot's of problems, like buttons not opening doors, player falling outside the map (had to use no clip to test the maps), and etc. Also, initially, DP was not finding the WADs, though i fixed this by moving them to a "textures" folder.
However, even if this is not working well with DP, i'll study the code a little bit, because that's what i was looking for. Thank you for the great piece of code, avirox.
You were running HL maps or quake 1 maps? Either way, it should work. Make sure "coop" is set to 1, as well
- avirox
- Posts: 137
- Joined: Wed Aug 16, 2006 3:25 pm
13 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest
