how to calculate cg.refdef.vieworg (calculated in cg_view.c) from server-side code?
Search found 5 matches
- Sat Feb 06, 2021 1:58 pm
- Forum: Programming Discussion
- Topic: How to calculate 3rd person vieworg from servercode?
- Replies: 1
- Views: 19055
How to calculate 3rd person vieworg from servercode?
The topic says it all:
how to calculate cg.refdef.vieworg (calculated in cg_view.c) from server-side code?
I'm trying to find out, but I'm just asking just in case someone already knows the answer.
how to calculate cg.refdef.vieworg (calculated in cg_view.c) from server-side code?
- Tue Jan 05, 2016 12:02 am
- Forum: ID Tech
- Topic: A difficult question about '_skybox' entities.
- Replies: 3
- Views: 5616
A difficult question about '_skybox' entities.
Hi! I'm trying to make a map with two completely separate areas (Box B& box C), both of which have the same skybox, but one of them additionally displaying a _skybox backdrop (from a 128x128x128 small area, BOX A). Is it possible to setup a _skybox entity in a way that it only targets and displa...
- Mon Dec 07, 2015 6:50 pm
- Forum: Programming Discussion
- Topic: How to disable SPECTATOR_FOLLOW on bots?
- Replies: 5
- Views: 8498
Re: How to disable SPECTATOR_FOLLOW on bots?
Hi! I managed to find the right place for the code, after a bit of trial-and-error.. First off let me clear up the fact that I'm coding/ mapping for Star Wars, Jedi Outcast MP 1.02, and not first and foremostly for Q3 1.32. :) So that there are a few slight differences/ changes to functions etc. (a...
- Mon Dec 07, 2015 12:43 pm
- Forum: Programming Discussion
- Topic: How to disable SPECTATOR_FOLLOW on bots?
- Replies: 5
- Views: 8498
Re: How to disable SPECTATOR_FOLLOW on bots?
Thanks for the quick reply! So far I've managed to disable speccing blue/red team (in team modes) in g_cmds.c (Cmd_Follow_f and Cmd_Follow_Cycle_f), by simply adding the lines: // can't follow blue team if ( level.clients[ i ].sess.sessionTeam == TEAM_BLUE ) { return; } (I copied that from "ca...
- Sun Dec 06, 2015 4:12 pm
- Forum: Programming Discussion
- Topic: How to disable SPECTATOR_FOLLOW on bots?
- Replies: 5
- Views: 8498
How to disable SPECTATOR_FOLLOW on bots?
Hi! Does anyone know how I could disable spectating a bot ? (such as that using cmds /follow <clientnumber> or /follownext wouldn't allow SPECTATOR FOLLOW on the bot; following humanplayers should then still remain functional though). If so, could they shed some light on this? I've searched a lot of...