|
|
#1 |
|
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 |
|
|
|
|
|
#2 |
![]() 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()) |
|
|
|
|
|
#3 |
|
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 |
|
|
|
|
|
#4 |
![]() 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. |
|
|
|
![]() |
|
||||||
| Thread Tools | |
| Display Modes | |
|
|