Use for <start> the eye of the player (player getEye()), and for <end> a far point in front of the player.
At least this is what I did.
If you want the entity hit use:
Code Snippet
Plaintext
entity = trace[ "entity" ];
Well this isn't necessarily true because there is bullet spread, which you can manually script to perfect accuracy, but bullet spread is random meaning the actual weapon can hit in one point within the spread while your script could end up hitting another.
Well this isn't necessarily true because there is bullet spread, which you can manually script to perfect accuracy, but bullet spread is random meaning the actual weapon can hit in one point within the spread while your script could end up hitting another.
Yeah, that's right. Didn't think in that. But that's the most accurate way I know...
most weapons you want the impact of are "projectile" weapons. you can use waittill("projectile_impact", weapon, impact). Cant remember if it is exactly that, but cant check at work
I try to modify your wonderweapon script only to see if its work for me. But it doesnt.
did you make the colt into a projectile weapon? otherwise it will never work.. If you did, try without the waittill "spawned_player", depending on where you call it they might have allready spawned?
did you make the colt into a projectile weapon? otherwise it will never work.. If you did, try without the waittill "spawned_player", depending on where you call it they might have allready spawned?
Drag weaponfile into UGX weapons editor and change type on first page to "projectile"
^ but, a projectile weapon makes crawlers, has splash damage and doesn't have bullet-penetration ( so just like the normal ray-gun ) so it might not Always suit your needs..
Drag weaponfile into UGX weapons editor and change type on first page to "projectile"
Edit: I also recommend you use playfx( fx, origin) instead of spawning the ent and playingfxontag. No need to make an ent for that. To further explain: Playfxontag has the advantage of being played on an entity while it is defined. Delete the model and the fx will stop. Best for looping fx. Playfx has the advantage of not needing an entity and is best with "one shot" fx. For anything static playfx is usually best
Thanks for the explanation. But now i get this error.
Last Edit: August 05, 2016, 01:24:30 pm by fanmagic
Ahh forgot there is a bit of modifications needed for a projectile weapon in the settings. Open up the IWD for my Afterlife and look at my weaponfile. I can imagine you are trying to make a custom WW? Could also look at my Atomic Levitator weaponfile in my weapons. Typically I copy and paste the zombie_colt_upgraded and change the things I want to get the settings right
Yes. That's what i would like to make. Testing it now...
Double Post Merge: August 05, 2016, 01:42:52 pmWorks perfect now. Thanks. But how can i move the fx a little bit higher?
Last Edit: August 05, 2016, 01:42:52 pm by fanmagic
Well if you make the colt a projectile weapon, it no longer does bullet damage. And you must set a speed for the bullet to reach it's target.... in other words it won't be instantaneous like a real life bullet. And you can't do penetration damage, where it goes through zombies.... you can only do impact damage to the first zombie and a radius damage after that. And the impact damage is just one set of damage, unlike bullets where you can set min/max damage and then distances, and it only gives you +50, so there is no headshot points or even a specified hit location to script it to give you headshot points, otherwise it would give you headshot points already. So what I'm saying is, don't try this.
Predicting from what your fx looks like: In order to move a zombie, you need to spawn and link a tag_origin to the zom. Move the link. Zombies cant be moved themselves
Ok. Can i use the move-part of your WW for my weapon?
Any script of mine ever you have permission to use exactly, or in pieces. ESPECIALLY if you are trying to learn
Spoiler: click to open...
even if I felt otherwise I couldnt actually tell you that you cant because all my releases are public. Just remember to credit
I also have code to do what you need that was meant for an upgrade to the atomic levitator. I can send that when I get home. It will be good to learn off of