Half-Life и Adrenaline Gamer форум http://aghl.ru/forum/ |
|
change Beam Length of weapon tripmine? http://aghl.ru/forum/viewtopic.php?f=12&t=3232 |
Страница 1 из 1 |
Автор: | abdobiskra [ 19 ноя 2021, 23:52 ] |
Заголовок сообщения: | change Beam Length of weapon tripmine? |
Hi, I tried to change the beam length based on HLSDK but it didn't work. Код: void CTripmineGrenade :: MakeBeam( void )What i do: Код: public EmitSound(entity, channel, const sound[])I should change the value of 2048.0 to a lower value, but the method seems wrong because the results remain the same Is there a way that makes more sense? |
Автор: | Lev [ 01 дек 2021, 02:23 ] |
Заголовок сообщения: | Re: change Beam Length of weapon tripmine? |
Hi! Код: if(equal(sound , "weapons/mine_activate.wav"))this is too late to make changes easily. I think, easiest way should be to intercept TraceLine call and adjust the result as needed. Or you can try to change m_vecEnd after CTripmineGrenade::Spawn - it is used to limit TraceLine length. |
Автор: | abdobiskra [ 03 дек 2021, 15:13 ] |
Заголовок сообщения: | Re: change Beam Length of weapon tripmine? |
Lev писал(а): Or you can try to change m_vecEnd after CTripmineGrenade::Spawn - it is used to limit TraceLine length. Thanks! I do this.I'm thinking of making beam length decreases or increases gradually Do you have an idea about that?. (set_task or *_Think .. etc) |
Страница 1 из 1 | Часовой пояс: UTC + 5 часов [ Летнее время ] |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |