Urban Terror Forums: How to unlocker Funsstuff using a cfg file - 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

How to unlocker Funsstuff using a cfg file Rate Topic: -----

help with scripting wanted

#1 User is offline   Zausel Icon

  • Account: zausel
  • Joined: 23-August 14
  • Posts: 8

Posted 31 August 2014 - 04:05 PM

Hi UrT Forums! :smile:
Browsing the manual i stumbled upon the Funstuff, but somehow couldn't get it going. I would like to unlocker the funstuff and set the appearance of my character in a cfg. The problem is, though i finally managed to create a working cfg with customized keybindings, i can't figuere out, how to translate the manual's information into a script.
Let's say, i want to unlocker the funstuff (g_allowFunstuff 1 & cg_showFunstuff 1) and make Takeshi wear a gasmask and Rafiq smoke a cigar.
What would those lines look like in an cfg?

Thank you in advance.


btw:
1) Great game! :laugh:
2) the forums' search led me to a blank page


Edit:
I got it. Just took of the helmet. :unsure: :blink:

This post has been edited by Zausel: 31 August 2014 - 07:37 PM


#2 User is offline   Iye Icon

  •   head moderator   
    Co-Chief Community Moderator
  • Account: iye
  • Country:
  • Joined: 07-June 11
  • Posts: 1,054

Posted 01 September 2014 - 09:49 AM

Wut? Gasmask and cigar should work with a helmet. (If a funstuff doesnt work with a helmet, screw it anyway :) )

You might want to check out this page: lcdlc.net/funstuff
(i filtered it for helmet and male)

i doesn't contain all custom fun-stuffs but quite a few (e.g. all the ones from ut_midnight)

also dswp.de wiki has a list of all funstuff ever. :)

This post has been edited by Iye: 02 September 2014 - 02:49 PM

Sorry for my bad spelling - I am still asleep. :)

|=| Iye's UrT Addon |=| Firefox Personas |=| Maps |=|
http://www.mediafire...vk3a602hcfg.jpg

#3 User is offline   Zausel Icon

  • Account: zausel
  • Joined: 23-August 14
  • Posts: 8

Posted 01 September 2014 - 04:57 PM

Moin Kamerad! :wink:
I learned a lot about scripting cfgs from your Add-on and TaggedZi's Urban Terror Oasis!. Keybinding is no problem any more. :rolleyes:

View PostIye, on 01 September 2014 - 09:49 AM, said:

Wut? Gasmask and cigar should work with a helmet. (If a funstuff doesnt work with a helmet, screw it anyway :) )

This means i got to dig deeper on this topic.

At the moment i have a more advanced question:
I want to bind the middle mouse button (MOUSE3) to "switch to knife and attack once or several times." Somehow this line screwed things up severly:
Bind MOUSE3 "weapon 1; wait 30; +attack"

This draws the knife properly, but doesn t attack and somehow afterwards i was not able to attack with MOUSE1 or jump etc anymore. :mellow:
Any suggestion on this?

Thank you!

This post has been edited by Zausel: 01 September 2014 - 04:58 PM


#4 User is offline   Iye Icon

  •   head moderator   
    Co-Chief Community Moderator
  • Account: iye
  • Country:
  • Joined: 07-June 11
  • Posts: 1,054

Posted 02 September 2014 - 02:49 PM

Quote

Gasmask and cigar should work with a helmet

Maybe that changed for 4.2. most custom fun-stuff is fucked up anyway, since player models changed for 4.2.

For your bind problem:
If you do
bind KEY "+action" Where KEY is a key of your choice (or its hex value) and +actions is a turn on/turn off action (like +attack and -attack or +button3 and -button3,...)
the action will be ended automatically.
This ONLY works when you don't bind ANYTHING else to that key. Also it doesnt work with alias or set.

so
bind KEY "vstr lorem;+action;say ipsum";
would get your actions stuck.
you will need to end the action you started with -action
while one of those actions is active you CANT do any other action. This is why you cant jump, fire, crouch,... . If used that +attack on an automatic rifle it would empty the whole magazine and wont let you reload, since reload is +button5.

So to fix your code:

bind MOUSE3 "ut_weaptoggle knife; wait 30; +attack; vstr nothing; -attack";
set nothing "";


For sure you could use wait instead of vstr nothing but while you are in a wait you literally cant do anything but move your view. (wait is bad.)


Hope i could make it clear.
greetz, iye

This post has been edited by Iye: 04 September 2014 - 09:54 AM

Sorry for my bad spelling - I am still asleep. :)

|=| Iye's UrT Addon |=| Firefox Personas |=| Maps |=|
http://www.mediafire...vk3a602hcfg.jpg

#5 User is offline   Zausel Icon

  • Account: zausel
  • Joined: 23-August 14
  • Posts: 8

Posted 03 September 2014 - 04:59 PM

View PostIye, on 02 September 2014 - 02:49 PM, said:

Hope i could make it clear.

"Lorem ipsum" required a seperate visit on wikipedia, but YES!
Crystal Clear! :biggrin:

Thank you!

bullet_loaderAdvertisement
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