Search found 5 matches

by leo9949
Sat Feb 06, 2021 1:58 pm
Forum: Programming Discussion
Topic: How to calculate 3rd person vieworg from servercode?
Replies: 1
Views: 8096

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.
by leo9949
Tue Jan 05, 2016 12:02 am
Forum: ID Tech
Topic: A difficult question about '_skybox' entities.
Replies: 3
Views: 3900

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...
by leo9949
Mon Dec 07, 2015 6:50 pm
Forum: Programming Discussion
Topic: How to disable SPECTATOR_FOLLOW on bots?
Replies: 5
Views: 5602

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...
by leo9949
Mon Dec 07, 2015 12:43 pm
Forum: Programming Discussion
Topic: How to disable SPECTATOR_FOLLOW on bots?
Replies: 5
Views: 5602

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...
by leo9949
Sun Dec 06, 2015 4:12 pm
Forum: Programming Discussion
Topic: How to disable SPECTATOR_FOLLOW on bots?
Replies: 5
Views: 5602

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...