Urban Terror Forums: Scripting help! - Urban Terror Forums

Jump to content

 Login | Register 
Advertisement
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Scripting help! Rate Topic: -----

com_cameramode 1

#1 User is offline   parkour Icon

  • Account: parkour
  • Joined: 16-December 10
  • Posts: 2

Posted 06 August 2011 - 01:28 AM

Ok so I'm making a movie script, and no I will not use Nexu's I want to make and use my own.

com_cameramode 1 is in conflict with bind f "toggle cg_thirdperson", whenever I have cameramode and thirdperson on at the same time my character becomes invisible. I do bind f "toggle cg_thirdperson" and I go into thirdperson but I can't see my character.

//=====Urban Terror Movie Configuration Parkour=====

//Default "0"
com_cameramode 1

//Default for all "1"
set cg_drawtimer "0"
set cg_maptoggle "0"
set cg_drawfps "0"
set cg_lagometer "0"
set cg_drawteamoverlayscores "0"
set cg_drawteamscores "0"

//Default unbind o/i
bind o "toggle r_shownormals"
bind i "toggle r_showtris"

//Default unbind, or . or /
// m default is cg_mappos 1

bind m "timescale 0"
bind , "timescale .5"
bind . "timescale 1"
bind / "timescale 2"

#2 User is offline   parkour Icon

  • Account: parkour
  • Joined: 16-December 10
  • Posts: 2

Posted 06 August 2011 - 04:12 AM

bump xd

#3 User is offline   klabauterman Icon

  • Account: klabauterman
  • Main tag: aI|
  • Country:
  • Joined: 28-February 10
  • Posts: 245

Posted 06 August 2011 - 10:42 AM

You have to /com_cameramode 0 and use only special keys (INSERT, …; F…; arrows; keypad; at least 42 keys on extended keyboards).

For demo viewing I modified my bind some time ago to get a proper workaround because a long time I did not realize that com_cameramode has a bug (until Nexu indicated it in a thread).


bind F12 "set ut_timenudge 0; vstr pad_democmds;"

set pad_democmds "set keypad0 toggle cl_freezedemo; set keypad1 timescale 1; set keypad2 timescale 0.5; set keypad3 timescale 2; set keypad4 timescale 4 ; set keypad5 toggle cg_thirdperson; set keypad6 toggle r_shownormals; set keypad7 toggle r_showtris; set keypad8 video; set keypad9 vstr videostop; bind uparrow toggle cg_drawteamscores; bind downarrow toggle cg_drawteamoverlay; bind leftarrow toggle cg_spectatorShoutcaster; bind rightarrow toggle cg_draw2d ; set keypaddel toggle cg_drawTimer; bind TAB +scores"

set videostop "stopvideo; s_stop"

Note: my KP_ keys are bound to "vstr keypad…"  as they are multifunctional for a selection of radio/team calls and gears.
PS: unfortunately [code] has no softwrap




#4 User is offline   Nexu Icon

  •   clan leader   
  • Account: nexu
  • Main tag: |it|
  • Country:
  • Joined: 26-June 07
  • Posts: 4,265

Posted 06 August 2011 - 01:30 PM

Here is how i solved that problem of not seeing your model in third person:


com_cameramode  "0"

unbind MOUSE1
bind MOUSE2     "vstr dm_action"
bind MOUSE3	"+vstr dm_sp.slowmode dm_sp.normal"

bind CTRL       "+vstr dm_input dm_idle"

seta dm_action  "toggle cg_thirdperson"
seta dm_bind01  "bind F1        video"
seta dm_bind02  "bind F2        stopvideo"
seta dm_bind05  "bind F5        toggle cg_draw2D"
seta dm_bind06  "bind F6        toggle cg_drawtimer"
seta dm_bind13  "bind MOUSE1    toggle r_showtris"
seta dm_bind14  "bind MOUSE2    toggle r_shownormals"

seta dm_unbind  "set dm_action  toggle cg_thirdperson; unbind F1; unbind F2; unbind F5; unbind F6; unbind MOUSE1"

seta dm_rebind  "vstr dm_bind01; vstr dm_bind02; vstr dm_bind05; vstr dm_bind06; vstr dm_bind13; vstr dm_bind14"

seta dm_input   "com_cameramode 1; vstr dm_rebind"
seta dm_idle    "com_cameramode 0; vstr dm_unbind"


If you need more key bindings, just repeat the system.

So basically what happens is, normally all the keys are not bound. If you press CTRL, that's when the keys rebinded as long as you 're holding down the CTRL key. So you can make combination such as CTRL+MOUSE1.

There are some redundant extra code in this example. They are for other key-bindings combinations i had in mind, but not implemented yet.

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

Advertisement


Copyright © 1999-2024 Frozensand Games Limited  |  All rights reserved  |  Urban Terror™ and FrozenSand™ are trademarks of Frozensand Games Limited

Frozensand Games is a Limited company registered in England and Wales. Company Reg No: 10343942