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 , 17:08   Re: Questions about scripting and HL engine
Reply With Quote #8

Quote:
Originally Posted by ot_207 View Post
PHP Code:
pev(idpev_buttonbutton)
if (
button IN_JUMP
it is used this way ->

PHP Code:
button pev(idpev_button)
if (
button IN_JUMP
I thought that there is no significant difference between the two code-part. I will try this tomorrow.

Quote:
Originally Posted by ot_207 View Post

PHP Code:
       pev(idpev_buttonButtons)
        
pev(idpev_anglesAngles)
        
set_pev(Slavepev_buttonButtons)
        
set_pev(Slavepev_anglesAngles
For this you should correct the button ones with what I have said above.
And for angles it is correct. Angles must be a float vector.
PHP Code:
    new buttonsFloat:angles[3]
    
buttons pev(idpev_button)
    
pev(idpev_anglesangles)
    
set_pev(Slavepev_buttonbuttons)
    
set_pev(Slavepev_anglesangles
I attached my (not updated since the first post) plugin's source code.
I will try this tomorrow also. Some comments about the plugin: I used id 1 and id 2 for simplicity and fast-debug. I will use iuser2 and "if user is an admin" and other things. Also the "move" thing is works. And I think I will try it to move to the server_frame and hope for no netchan errors and other.
Attached Files
File Type: sma Get Plugin or Get Source (mindcontrol.sma - 536 views - 2.2 KB)
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