Forum posts

I just found out how to do it so nevermind, but here's how I did it for people in the future if they need it.
//this gets a pointer to the viewmodel
cl_entity_t* viewmodel = gEngfuncs.GetViewModel();
if (viewmodel)
{
     //I just set it to the sine of the time because that's what I need but yeah
     viewmodel->curstate.controller[0] = (sin(gpGlobals->time);
}
Is it possible to set a viewmodel's bone controller's value either from server-side or client-side code? I need this to move a bone programmatically, but I can't think of any other ways to do it and I've tried every way I could think of to alter the controllers value, and not a single one worked. Namely getting the weapon entity in the server-side code and setting its bone controllers is what I've tried the most.
Posted 1 month ago2024-08-01 16:01:40 UTC
in Competition 43: Make Black Mesa Come Alive! Post #349026
I'm going to try and submit a map for this contest, I was going to for the last one but I realized partway through that I don't know a lick about HLDM so I'm glad this one will be for singleplayer maps too.