![]() |
Shoots
2 questions.
A: Can someone explain me a simple shoot script(for bullets like on era) B:Why is shootarrow etc. clientside only? |
PHP Code:
|
Quote:
PHP Code:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Looking at this just brought something to my attention, is there vecz(), i know it seems pointless and most likely is, but just curious. o.O
|
Quote:
|
shoot(temp.startx, temp.starty, temp.startz, temp.angle, temp.zangle, temp.power, temp.ani, temp.aniparam0, temp.aniparam1);
with the numbers or just like written above? |
just like written above as long as those variables are defined
You can see in Chompy's script where those variables (temp.startx, temp.angle, etc) are given values. You can very well just put all the numbers/math in the appropriate location in the shoot() function, but it's very messy, and considered bad practice to use "magic numbers", meaning numbers without clear meaning. Defining the variables beforehand gives the code more readability ^_^ |
| All times are GMT +2. The time now is 12:49 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.