Raised This Month: $51 Target: $400
 12% 

Change the laser beam of tripmine (Half-Life)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Flipper_SPb
Senior Member
Join Date: Jun 2009
Location: Worldspawn
Old 12-22-2010 , 14:10   Change the laser beam of tripmine (Half-Life)
Reply With Quote #1

I know, it is possible with Orpheu.
I need to change beam width, color and other properties.

Last edited by Flipper_SPb; 12-26-2010 at 14:36.
Flipper_SPb is offline
Send a message via ICQ to Flipper_SPb
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-22-2010 , 14:35   Re: Change the laser beam of tripmine (Half-Life)
Reply With Quote #2

Get the m_pBeam offset, and change pev_rendercolor, etc..
__________________
Arkshine is offline
Flipper_SPb
Senior Member
Join Date: Jun 2009
Location: Worldspawn
Old 12-22-2010 , 15:09   Re: Change the laser beam of tripmine (Half-Life)
Reply With Quote #3

Thanks, but I cant to find the m_pBeam offset
Flipper_SPb is offline
Send a message via ICQ to Flipper_SPb
Flipper_SPb
Senior Member
Join Date: Jun 2009
Location: Worldspawn
Old 12-22-2010 , 15:20   Re: Change the laser beam of tripmine (Half-Life)
Reply With Quote #4

I tried to scan offsets from 1 to 800 for monster_tripmine with get_pdata_int. And there is no entities with "beam" classname.
Flipper_SPb is offline
Send a message via ICQ to Flipper_SPb
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-22-2010 , 16:44   Re: Change the laser beam of tripmine (Half-Life)
Reply With Quote #5

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 )
__________________
Arkshine is offline
Flipper_SPb
Senior Member
Join Date: Jun 2009
Location: Worldspawn
Old 12-22-2010 , 17:26   Re: Change the laser beam of tripmine (Half-Life)
Reply With Quote #6

How to hook the beam spawn?
And how to change it width?

Last edited by Flipper_SPb; 12-24-2010 at 10:27.
Flipper_SPb is offline
Send a message via ICQ to Flipper_SPb
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-22-2010 , 17:52   Re: Change the laser beam of tripmine (Half-Life)
Reply With Quote #7

- I can't think a good way to hook that without using Orpheu and hooking CBeam::BeamCreate(), or more MakeBeam().
- pev_scale
__________________

Last edited by Arkshine; 12-22-2010 at 19:55.
Arkshine is offline
Flipper_SPb
Senior Member
Join Date: Jun 2009
Location: Worldspawn
Old 12-24-2010 , 10:28   Re: Change the laser beam of tripmine (Half-Life)
Reply With Quote #8

Thank you.
And the last question. Is it possible to change the beam "Noise"?
Flipper_SPb is offline
Send a message via ICQ to Flipper_SPb
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-24-2010 , 10:59   Re: Change the laser beam of tripmine (Half-Life)
Reply With Quote #9

pev_body.

All is already written in the HLSDK. Please search next time.
__________________
Arkshine is offline
Flipper_SPb
Senior Member
Join Date: Jun 2009
Location: Worldspawn
Old 12-24-2010 , 13:22   Re: Change the laser beam of tripmine (Half-Life)
Reply With Quote #10

Quote:
Originally Posted by Arkshine View Post
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?
Flipper_SPb is offline
Send a message via ICQ to Flipper_SPb
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:01.


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