Go Back   Steam Users' Forums > Steam Tool Discussions > Source Coding

Reply
 
Thread Tools Display Modes
Old 05-24-2007, 01:04 PM   #1
jmdrummer16
 
Banned
Join Date: May 2007
Reputation: 12
Posts: 116
[question(s)]creating a menu clientside & thirdperson animations

Hey guys,
Can someone help me set up a simple menu clientside? Ive tried the engine->usermessagebegin and wrote all the bytes to it but it did not work (wrote server side) an example or a hint in the right direction would be great

Also - does anyone know how to set different sequences for a playermodel, for example i put in an antlion as a playermodel but of course the human sequences/animations dont work for it. so would anyone know where to put the code, and what to put? like client or serverside, i know how to get the button pressed and register a command, but im not sure how to make it change animations.

thanks guys
jmdrummer16 is offline  
Reply With Quote
Old 05-24-2007, 04:11 PM   #2
lodle
 
Join Date: Mar 2006
Reputation: 36
Posts: 1,715
menus should be easy. What you want it for?

basic steps:
*Make a new panel (see wiki)
*bind a key in in_main.cpp
*check for key press in panel (show on press)
*do what ya want using vgui
*send final command to server using engine command (see team menu on how they do this)
*process and validate command server side (player.cpp ClientCommand())
lodle is offline   Reply With Quote
Old 05-24-2007, 04:38 PM   #3
jmdrummer16
 
Banned
Join Date: May 2007
Reputation: 12
Posts: 116
i want it so its able to pick teams, i saw the teammenu.cpp ext
is there anyway to execute that? i tried it but i kept getting all kinds of errors like, i dont know what identifier to attach to it i tried getting local player and such, didnt work
jmdrummer16 is offline   Reply With Quote
Old 05-24-2007, 04:51 PM   #4
lodle
 
Join Date: Mar 2006
Reputation: 36
Posts: 1,715
teammenu is all ready there. Wiki is your friend here: http://developer.valvesoftware.com/wiki/Creating_teams

Nothing important should be done client side as its an untrusted source.
lodle is offline   Reply With Quote
Reply

Go Back   Steam Users' Forums > Steam Tool Discussions > Source Coding


Thread Tools
Display Modes

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



All times are GMT -7. The time now is 06:04 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site Content Copyright Valve Corporation 1998-2014, All Rights Reserved.