Mafuba plugin still in need of help.....
https://pastebin.com/GAGVjEyM
here is the current code.... i am still pretty new to entitys... what i want to do: Line 104: is executed when the entity touches someone(big thx to celena luna) then i want execute "Phase2" Line248: Phase2 gets executed and the entity(Mafubaphase2 from@createmafubabeamentityphase2) is spawned. line255 & 131: here is the error..... the entity mafubabeam2 wont spawn on the victims location like it should....... of the first touch(from "mafuba"--> mafuba_touch) the "AIM" of 255 is meant to lead the entity mafubaphase2 to where i am looking.....but it goes where the victim looks..... and i get such a êrror.....as soon as the first entity touches i get error waves of: L 07/17/2018 - 17:16:08: [FAKEMETA] Invalid entity and after like 10 seconds that is gone...... ---------------------------what should happen: entity mafuba flys towards a enemy....then phase 2 is executed......mafuba entity dissapears...victim gets stunned.....and after some seconds entity mafubaphase2 flys where i(the caster) is looking...... ----------------------what is next to do: -stun player(victim) as soon as the first entity mafuba hits him. -force the victims camera on the second entity(mafubaphase2) -add a worldtouch combined with searchbysphere....so it checks if it hits the ground and if there is a ricecooker entity near by. -spawn a little green fire inside ricecooker. -check if ricecooker is open or closed (need to be closed to imprison someone) -and force camera of victim around the ricecooker for so long untill ricecooker gets destroyed or someone opens the ricecooker. then the victim gets set free and can fight again. imprisoned means that the victim is unable to move.....dissapears from map.....frozen i know there is still a lot to do......i will keep you updated here;) hoping that some nice people, of which we sure have a lot here:P, help me with some tips...snippets....and help a newbie with this amazing plugin |
Re: Mafuba plugin still in need of help.....
PHP Code:
PHP Code:
PHP Code:
The 2nd param is the same problem I said about pev_owner above. Param 3rd and 4th you are right. |
Re: Mafuba plugin still in need of help.....
i need that mafubaphase2 detects when it collides with world and entity mafuba_jar
how do i detect the world in the second touch? with a && entity mafuba jar it should do the trick. @CreateMafubaBeamEntityphase2(100, pev_owner, 1.0, 100); set_task(2.0, "Phase2", pev_owner); //Prevent from touching multiple time ==> @CreateMafubaBeamEntityphase2(100, pev(ent, pev_owner), 1.0, 100); set_task(2.0, "Phase2", pev(ent, pev_owner)); //Prevent from touching multiple time that right? and what about the entity error? as soon as the first entity (mafuba) touches the victim my console get spammed with "invalid entity" even when i disabled all of the lines above |
Re: Mafuba plugin still in need of help.....
PHP Code:
The rest, I don't know what you are trying to do put debug so you know which line give invalid entity |
Re: Mafuba plugin still in need of help.....
@Celena Luna:
first of all big thx!!! there should be more of your kind!!!:D really appreciate the help and i will give credits for that in my plugin;) https://youtu.be/zrWn9-bt0K8?t=85 if u are so kind pls watch this around 1:30 the attack starts....a huge green wave flys automatly towards the enemy. that is entity mafuba then around 1:33 he gets hit. that is when the entity touches the victim around 1:53 that green circle is the "phase" part<--still needs to be done. at 2:30 you see that little beam. that is entity mafubaphase2. that should start from the victim. and go where i aim at. at 2:37 u see a fail...he didnt hit the ricecooker....i wanna have mafubaphase2 detect when it hits the ground and when it hits the ground and is around 5meter near a ricecooker(that is opened) if he would have succeded then the victim would have been trapped for 2mins or untill the ricecooker gets destroyed. if he hits something else the victim is set free again. during mafubaphase2 the camera of the victim should be attached to the entity aswell and he should be stunned during that. *************right now with your changes mafubaphase2 starts inside me(caster) and goes where the victim aims...... https://pastebin.com/kdyumYzb here latest code...... if you want i can give u a download link and we could check it on my server. the mod i do this for really is fun^^ otherwise i hope we can solve it here. |
Re: Mafuba plugin still in need of help.....
I know enough about DB up to DBS recently to know what Mafuba look like.
It is just I can't image in CS style |
Re: Mafuba plugin still in need of help.....
https://cdn.discordapp.com/attachmen...96/unknown.png
picture shows a old esf client.... some up to date videos of my pack can be found here: https://www.youtube.com/channel/UC26...D6JD44DZ3jaLLQ can look a bit like that;) i am preparing a upload of my latest pack. all u need to do is put it under half life folder and enjoy. its for a mod called esf. the way i upload it all needed is there. upload will take a while. gonna post it later. so you have any idea in the meantime about the switched parts? victim controls the direction of the second entity and the second entity starts inside me instead of victim so i would need to have the id of the guy who get touched in the touch of entity "mafuba" and have that as starting point from entity "mafubaphase2" and of course the id of me for the public AIM part......so it aims where i want to and not where the victim looks is there a way to set these straight through the plugin? so i could say: me, victim, wholetime?>< hope u get what i mean. reserve those idnames for whole plugin. |
| All times are GMT -4. The time now is 12:29. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.