Raised This Month: $ Target: $400
 0% 

Questions about scripting and HL engine


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
OlikA
Junior Member
Join Date: Aug 2009
Location: Caldeum
Old 08-18-2009 , 16:47   Re: Questions about scripting and HL engine
Reply With Quote #6

Quote:
Originally Posted by ot_207 View Post
#2 pev_button works this way. To get it.

PHP Code:
new button pev(idpev_button
PHP Code:
new button IN_ATTACK IN_BACK IN_ALT
set_pev
(idpev_buttonbutton
Will come with an edit to the other 2.
I read that I have to use bitwise operators and get the actual buttons pressed like
PHP Code:
pev(idpev_buttonbutton)
if (
button IN_JUMP
But I want to make a specific plugin that allows me to control another player. No abuse, I'm about to make a public HNS server with bunny hop courses (blockmaker) and it would be great if I could help out newbies to reach what they want. So if they want help, I could easily control them to the right place. I tried this code:

PHP Code:
       pev(idpev_buttonButtons)
        
pev(idpev_anglesAngles)
        
set_pev(Slavepev_buttonButtons)
        
set_pev(Slavepev_anglesAngles
And on the dedicated server, I saw that when I press +forward or simply looking left, the Slave is also was about to go forward and look left but it was only a "visual" change, the Slave didn't saw any change. Give me some minutes and I will post the code.
OlikA is offline
 



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 15:06.


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