another system than looping task as thinking ent(s)
Not really sure what this means but the idea is
im using set_task with "b" flag to create a bleeding function in my plugin. Conor told me "Consider another system than looping task as thinking ent(s)" I have no idea what he means but i have tried while loops. but that just happens really fast lol.. i need to be able to put a delay in set via cvar. thats why i used PHP Code:
ExecuteHamB(Ham_TraceBleed, id, dmg, Float:Direction, trace, dmgbits); |
Re: another system than looping task as thinking ent(s)
|
Re: another system than looping task as thinking ent(s)
Quote:
|
Re: another system than looping task as thinking ent(s)
In a private plugin i've never finished so i've never released, i'm using 1 entity per player (so players don't beel at the same time as in gore plugin and next bleed time is randomized) :
But you could manage with only 1 thinking entity ;) PHP Code:
|
Re: another system than looping task as thinking ent(s)
Quote:
lol i wish there was more documentation on this type stuff Hawks Tut kinda just tells you how to do it and why its better but no matter what i do i cant figure out how to do it... Not to many examples out there. |
Re: another system than looping task as thinking ent(s)
RegisterHamFromEntity(Ham_Think, iEnt, "Think_Bleed")
so this would register all Thinks from info_target entities and call Think_Bleed() on each of it thinking? btw, does RegisterHamFromEntity() also not accept any non-standard entity classnames like RegisterHam()? PHP Code:
|
Re: another system than looping task as thinking ent(s)
Quote:
|
Re: another system than looping task as thinking ent(s)
Quote:
ive been playing with it but haven't figured it out yet it takes time.... i only code like once a month lol... work/school takes to much time |
Re: another system than looping task as thinking ent(s)
What haven't you figure out ?
A basic global entity think: Code:
#include <amxmodx>The rest of Connor's code is just to make bleeding work efficiently, so just use that and figure it out when you have time to learn. |
Re: another system than looping task as thinking ent(s)
@Hunter
It takes time bro... lol the only time i even try to create plugins is when i need something for my servers that isnt already out there. So i dont play with it often. other then that the only code i play with is Small basic and i do that with my 8 and 10 year old lil bros. I start school again on July 4th which will finally get me going into programing classes. fucking general ed blows!!!!!. So i should be able to start playing with code more and actually understanding it lol.. i know very lil enough to get me by with pawn. but the classes I'm taking are mainly C++ and what not my major is Computer Forensics. But thanks.. i just haven't had time to really get into this. |
| All times are GMT -4. The time now is 04:29. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.