![]() |
PMB, SpawnPost for other entities?
As you can read in the buttons thread, i have difficulties detecting a button in de_prodigy. It works with 1 button, but the other button does not get detected.
The tracehull: Code:
UTIL_TraceHull (pBot->pEdict->v.origin, vPentVector, dont_ignore_monsters, point_hull, pBot->pEdict, &trb); Code:
int Spawn_Post (edict_t *pent) |
Re: PMB, SpawnPost for other entities?
Update:
i have tried several things, like changing into SOLID_BSP and the like. Nothing gives me the satisfied result. I did not find anything that could help me further. I have set the worldbrush flag and such but it still gives me "wordspawn" when it hits the button. So, this leaves me to the following: Could it be possible that the box of this trigger_multiple is so big, that the 'center' of it will be in a wall (worldspawn). Therefor the wall will be 'hit' and not the trigger multiple? I have simply no other clue how to fix this. edit: before anyone wants to 'fix' me on this: i used the following code: Code:
// is this a trigger_multiple ? |
Re: PMB, SpawnPost for other entities?
Perhaps the flags for trigger_multiples are set BEFORE they've been spawned... try doing this in Spawn() and not Spawn_Post() and see if it helps...
Does your trigger_multiple have a bounding box (v_absmin and v_absmax) ? I suppose yes. If it has none, then no wonder the TraceLine passes through. *edit* why are you clearing the bit and setting it again ? |
Re: PMB, SpawnPost for other entities?
I just tried several things just to see if something happens. Or to check if something actually _DID_ happen. I figured the spawn_post was effective when i used SOLID_BSP.
I don't know about v_absmin and v_absmax, but i assume it has some! You need vecbmodel() to get the vector , and thats the most centered one. It is undoable to know what the most closest vector of that model is towards the bot. It worked with 1 button for de_prodigy okay, so i think its a mapping error. As you can see i already have fixed it, but its a very dirty fix. |
All times are GMT +2. The time now is 13:58. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.