AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Change the laser beam of tripmine (Half-Life) (https://forums.alliedmods.net/showthread.php?t=145972)

Flipper_SPb 12-22-2010 14:10

Change the laser beam of tripmine (Half-Life)
 
I know, it is possible with Orpheu.
I need to change beam width, color and other properties.

Arkshine 12-22-2010 14:35

Re: Change the laser beam of tripmine (Half-Life)
 
Get the m_pBeam offset, and change pev_rendercolor, etc..

Flipper_SPb 12-22-2010 15:09

Re: Change the laser beam of tripmine (Half-Life)
 
Thanks, but I cant to find the m_pBeam offset

Flipper_SPb 12-22-2010 15:20

Re: Change the laser beam of tripmine (Half-Life)
 
I tried to scan offsets from 1 to 800 for monster_tripmine with get_pdata_int. And there is no entities with "beam" classname.

Arkshine 12-22-2010 16:44

Re: Change the laser beam of tripmine (Half-Life)
 
It would be something like :

Code:

166        - m_flPowerUp
167 -> 169  - m_vecDir
170 -> 172  - m_vecEnd
173        - m_flBeamLength
174        - m_hOwner
176        - m_pBeam
177 -> 179  - m_posOwner
180 -> 182  - m_angleOwner
183        - m_pRealOwner

And to get the entity index, you should use get_pdata_cbase().

Example : new beam = get_pdata_cbase( weapon, m_pBeam )

Flipper_SPb 12-22-2010 17:26

Re: Change the laser beam of tripmine (Half-Life)
 
How to hook the beam spawn?
And how to change it width?

Arkshine 12-22-2010 17:52

Re: Change the laser beam of tripmine (Half-Life)
 
- I can't think a good way to hook that without using Orpheu and hooking CBeam::BeamCreate(), or more MakeBeam().
- pev_scale

Flipper_SPb 12-24-2010 10:28

Re: Change the laser beam of tripmine (Half-Life)
 
Thank you.
And the last question. Is it possible to change the beam "Noise"?

Arkshine 12-24-2010 10:59

Re: Change the laser beam of tripmine (Half-Life)
 
pev_body.

All is already written in the HLSDK. Please search next time.

Flipper_SPb 12-24-2010 13:22

Re: Change the laser beam of tripmine (Half-Life)
 
Quote:

Originally Posted by Arkshine (Post 1378112)
pev_body.

All is already written in the HLSDK. Please search next time.


I read HLSDK but I can't find it.
Where in HLSDK i have to search?


All times are GMT -4. The time now is 02:23.

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