The following warnings occurred:
Warning [2] Trying to access array offset on null - Line: 198 - File: inc/plugins/google_seo.php PHP 8.3.36 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/inc/plugins/google_seo.php 198 errorHandler->error_callback
/inc/plugins/google_seo/redirect.php 131 google_seo_tid
/inc/class_plugins.php 142 google_seo_redirect_hook
/global.php 100 pluginSystem->run_hooks
/showthread.php 28 require_once
Warning [2] Undefined property: DB_MySQLi::$google_seo_query_limit - Line: 232 - File: inc/plugins/google_seo.php PHP 8.3.36 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/inc/plugins/google_seo.php 232 errorHandler->error_callback
/inc/plugins/google_seo/redirect.php 131 google_seo_tid
/inc/class_plugins.php 142 google_seo_redirect_hook
/global.php 100 pluginSystem->run_hooks
/showthread.php 28 require_once
Warning [2] Decrement on type null has no effect, this will change in the next major version of PHP - Line: 232 - File: inc/plugins/google_seo.php PHP 8.3.36 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/inc/plugins/google_seo.php 232 errorHandler->error_callback
/inc/plugins/google_seo/redirect.php 131 google_seo_tid
/inc/class_plugins.php 142 google_seo_redirect_hook
/global.php 100 pluginSystem->run_hooks
/showthread.php 28 require_once




Velocity of arrows decreases too much
#1
Hello

I want to rise the frequency with that one shoots arrows with a bow (imagine a machine gun). But if I spawn arrows manually they don't behave like "normal" arrows because the velocity decreases much more. Also, how can I get the arrow-shooting animation of the arrow?

I have to following code in the HOOK_PLAYER_RIGHT_CLICK:
Code:
Pos = Player:GetThrowStartPos() Speed = Player:GetThrowSpeed(30) Arrow = World:CreateProjectile(Pos.x, Pos.y, Pos.z, cProjectileEntity.pkArrow, Player, nil, Speed) return true


I am trying to solve this for hours, so thanks in advance Smile
Reply
Thanks given by:
#2
There are known issues with velocity and knock-back. Someone will hopefully fix them eventually.
Reply
Thanks given by:
#3
Hello,
there shouldn't be any difference between spawning an arrow in a plugin and by the server.
Note that the server uses a speed coeff (for cPlayer:GetThrowSpeed() ) in the range of 6 (min bow force) to 60 (max bow force), so you might want to try with different speed coeffs.

I suppose you meant the arrow-shooting animation of the bow, there's currently no way to do that. Not sure if it is even supported in the protocol, I'd expect this to be completely client-side.
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)