Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turn prvm_edictset into prvm_edictget when 4 args #213

Open
Baker7 opened this issue Oct 15, 2024 · 0 comments · May be fixed by #228
Open

Turn prvm_edictset into prvm_edictget when 4 args #213

Baker7 opened this issue Oct 15, 2024 · 0 comments · May be fixed by #228

Comments

@Baker7
Copy link

Baker7 commented Oct 15, 2024

// prvm_edict.c

static void PRVM_ED_EdictSet_f(cmd_state_t *cmd)
{
	prvm_prog_t *prog;
	prvm_edict_t *ed;
	mdef_t *key;

#if 1
	if (Cmd_Argc(cmd) == 4) { // Baker: Turn into prvm_edictget with 4 params
		PRVM_ED_EdictGet_f (cmd);
		return;
	}
#endif

So when you are in the console ...

prvm_edictset server 24 scale // Uh, I forget what the scale is, let's press Enter and see current value

0.20003

Ok it needs larger ....

prvm_edictset server 24 scale 0.4 (enter)

@hemebond hemebond linked a pull request Dec 17, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant