| Blockland Forums > Modification Help |
| What would be the function that sets a delay of a raycast judging by distance? |
| << < (6/7) > >> |
| Brian Smithers:
--- Quote from: Destiny/Zack0Wack0 on January 17, 2012, 12:23:14 AM ---I wouldn't be telling you if I did.. and when you're running native code against using raycasts, raycasts will always lose. --- End quote --- But raycasts have the word ray in it, which is like a ray gun. And ray guns RULE THE WORLD. |
| SWAT One:
So anyway, how would this mathematical string be put into Brian's function? |
| Port:
What mathematical string? |
| Katadeus:
--- Quote from: SWAT One on January 16, 2012, 11:27:08 PM ---Well it fires at the same time as a gun would normally fire, immediately when pulling the trigger. It just sets the position that the player is/was looking at to explode at the calculated delay. --- End quote --- So you pull the trigger, the raycast kills someone, and then an explosion goes off later, in another place entirely? What? I don't understand why, how, what. |
| CityRPG:
--- Quote from: Destiny/Zack0Wack0 on January 16, 2012, 11:11:11 PM ---Setting initialVelocity in Projectile::onAdd allows you to have unlimited projectile speed. All hail the Almighty Lord Trigun and Solver of the "My stuffty Unoriginal Weapons Don't Shoot Fast Enough" Dilemma. He only requests payment in your souls, your children's souls and so on. --- End quote --- Do clients actually see the increased speed or only the local connection? Edit: Now that I think about it, isn't the solution %projectile.setVelocity(); in ::onAdd? |
| Navigation |
| Message Index |
| Next page |
| Previous page |