AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   velocity_by_aim to match normal weapon drop? (https://forums.alliedmods.net/showthread.php?t=325560)

frio 06-27-2020 04:46

velocity_by_aim to match normal weapon drop?
 
I want to be able to "drop" an entity and match the path a normal weapon takes when you drop it.

I think the biggest thing is that when you look down and drop a weapon, it gets dropped a really long distance, but when you do the same to an entity with velocity_by_aim, it gets dropped right next to you.

Is there any way I can get it to look like a normal weapon drop?

HamletEagle 06-27-2020 05:55

Re: velocity_by_aim to match normal weapon drop?
 
https://github.com/s1lentq/ReGameDLL...ayer.cpp#L7968

This is how the game calculates the velocity for a weapon drop. Do the same thing for your entity.


All times are GMT -4. The time now is 17:08.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.