Clown gun in Quake4?

Nologic
Posts: 121
Joined: Thu Aug 05, 2004 7:00 am

Post by Nologic »

Maybe...but using a longer wait state...is also ill advised as well correct? In prior id game engines using wait prevented player interaction...hence a lot of nade tossing scripts would end up causing players to walk off ledges. ;)

So is it different with QIV?
ex-28
Posts: 49
Joined: Sat Oct 22, 2005 1:58 am

Post by ex-28 »

ok i didi a bit of testing and as you have already said verry unwiseable to run more then 1 at a time , i had the name animator going as well as the clowngun script and when i ran both togeather at same time it actually slowed down the color changes of my name.,



is it possible at all to have color change on the lightning gun or the hyper blaster ? colored lighting or hyper bullets would looke pretty darn sweet if u ask me !

Happy frggin'


Ex
Nologic
Posts: 121
Joined: Thu Aug 05, 2004 7:00 am

Post by Nologic »

Well you could combine them into one script...so there is only 1 wait state between all changes rather than multiple wait states, which would reduce lag.

As for lighting and the hyperblaster...you'll have to check and see if there are cvars for those...tho I don't recall seeing any off hand.
ex-28
Posts: 49
Joined: Sat Oct 22, 2005 1:58 am

Post by ex-28 »

ahh great idea , thank you , however i think i'll stick with just the 1 to reduce the lag , yah not sure on cvars on them other either i had a snoop around but came up empty .


Ex
ex-28
Posts: 49
Joined: Sat Oct 22, 2005 1:58 am

Post by ex-28 »

Norlogic or maybe somone else can figure this out as i am new to scripting with this but have tried ever and over agian , i know it's not reccomended however, when i get the server list for online play , i click on a server i wish to join (normally it hilights and u can then click on join) but when running this name animator what happends is i clcik on a server to join and it seems as if it's selecting it and unselecting it agian.
so i cannot click on join game nohtign happends , only way to get it to join is to doubble click the server i wish to join over and over real fast then it will work, i have deffinatlly narowed it down to being this name script as i take it out of my autoexec and everything works 100% .


any idea at all what would be causeing this to happen and / or how to fix it , and still have the script on by default as it is now , without having to bind a key to start/stop it ?

set ua_rainbowAnimator "ui_name '^c910**Extreme**^0'; wait 10; ui_name '^c950**Extreme**^0'; wait 10; ui_name '^c990**Extreme**^0'; wait 10; ui_name '^c091**Extreme**^0'; wait 10; ui_name '^c095**Extreme**^0'; wait 10; ui_name '^c099Extreme^0'; wait 10; ui_name '^c109Extreme^0'; wait 10; ui_name '^c509Extreme^0'; wait 10; ui_name '^c909Extreme^0'; wait 10; vstr ua_rainbowAnimator"
vstr ua_rainbowAnimator
Nologic
Posts: 121
Joined: Thu Aug 05, 2004 7:00 am

Post by Nologic »

I don't think there is much you can do...just bind it to a key and call it good.

Scripts that make heavy use of wait states are never really good to use....and in this case endlessly cycle...which makes it all the worse.

Its cool stuff to toy with....but it is a toy and nothing more.

Only way to fix this would be for Raven to add in the option to use special files that the game would parse and display each line per set game tick. Hence it would no longer use wait states, as the data from the file would be part of the games internal strings..errr some thing like that (read not a programmer). :)

Maybe Raven will add some thing like that...probably not...heh but who knows.
ex-28
Posts: 49
Joined: Sat Oct 22, 2005 1:58 am

Post by ex-28 »

ok thank you so much for the reply , i will go back and bind it , probly for the best anyways as i dont like to have it on when i multiplay all the time.,

CHeers
NitrousFlare
Posts: 81
Joined: Sun Oct 30, 2005 6:32 am

Post by NitrousFlare »

i make a cfg that has the continouos name change script in it. Now i wanna make a cfg that stops that cfg, and makes my name NOT change anymore, how do i do this?
Nologic
Posts: 121
Joined: Thu Aug 05, 2004 7:00 am

Post by Nologic »

Why not just leave it bound...
NitrousFlare
Posts: 81
Joined: Sun Oct 30, 2005 6:32 am

Post by NitrousFlare »

actually, im just gonna ditch the continouso scripts, because (for me) it lags the sh1t out of me, and when i enables it, i got disconnected from aim, xfire, and quake stalled, then when i stopped it, i didn't lag anymore.. but thanks anyways
ex-28
Posts: 49
Joined: Sat Oct 22, 2005 1:58 am

Post by ex-28 »

i never seen any lag issues at all useing the name script but if you run more then 1 animator you may , everything running smooth and lag free here.
ex-28
Posts: 49
Joined: Sat Oct 22, 2005 1:58 am

Post by ex-28 »

ok i been tryign to get this to work for 3 days and jsut cant get it to work , this scriupt i have it set to turn on when i hit "home" how can i also have it turn off when i hit "end" ?

bind "HOME" "ui_clan '^2*^c909BFG^2*' ; set ua_nameAnimator 'vstr ua_rainbowAnimator'; vstr ua_nameAnimator"
set ua_rainbowAnimator "ui_name '^c910**Extreme**^0'; wait 10; ui_name '^c950**Extreme**^0'; wait 10; ui_name '^c990**Extreme**^0'; wait 10; ui_name '^c091**Extreme**^0'; wait 10; ui_name

'^c095**Extreme**^0'; wait 10; ui_name '^c099Extreme^0'; wait 10; ui_name '^c109Extreme^0'; wait 10; ui_name '^c509Extreme^0'; wait 10; ui_name '^c909Extreme^0'; wait 10; vstr ua_nameAnimator"

tried everyting and it just won't take..

i'm a newb what can i say , when it comes to scrripting.
Nologic
Posts: 121
Joined: Thu Aug 05, 2004 7:00 am

Post by Nologic »

Code: Select all

set ua_rainbowAnimator "ui_name '^c910**Extreme**^0'; wait 10; ui_name '^c950**Extreme**^0'; wait 10; ui_name '^c990**Extreme**^0'; wait 10; ui_name '^c091**Extreme**^0'; wait 10; ui_name '^c095**Extreme**^0'; wait 10; ui_name '^c099Extreme^0'; wait 10; ui_name '^c109Extreme^0'; wait 10; ui_name '^c509Extreme^0'; wait 10; ui_name '^c909Extreme^0'; wait 10; vstr ua_nameAnimator"

set ua_nt_01 "set ua_nt_f vstr ua_nt_02; set ua_nameAnimator 'vstr ua_rainbowAnimator'; vstr ua_nameAnimator"
set ua_nt_02 "set ua_nt_f vstr ua_nt_01; set ua_nameAnimator; vstr ua_nameAnimator; ui_clan '^2*^c909BFG^2*'"
set ua_nt_f "vstr ua_nt_01"

bind "HOME" "vstr ua_nt_f"
Okay thats it for now on sample code...I'm only going to be coding for this game maybe a week or two and then thats it....there are plenty of sites out there that teach people how to script so stop bashing your head against a wall and go read some...it'll take far less time and you'll get the results you want and need...or at least you'll know why you can't get to happen what your wanting...if all else. ;)
NitrousFlare
Posts: 81
Joined: Sun Oct 30, 2005 6:32 am

Post by NitrousFlare »

arite, i actually figures this one out, im not gonan explain it, b/c you should beable to see what i did. This is My name Change Script, and it stops too.

Code: Select all

set ua_rainbowAnimator "ui_name '^C300F^c300L^c500A^c900R^c500E'; wait 10; ui_name '^C500F^c300L^c300A^c500R^c900E'; wait 10; ui_name '^C900F^c500L^c300A^c300R^c500E'; wait 10; ui_name '^C500F^c900L^c500A^c300R^c300E'; wait 10; ui_name '^c300F^c500L^c900A^c500R^c300E';wait 10; vstr ua_rainbowAnimator"

vstr ua_rainbowAnimator

bind "KP_RIGHTARROW" "set  ua_rainbowAnimator; ui_name '^c300F^c500L^c900A^c500R^c300E'"
you need to bind KP_HOME "exec changenamesciprt.cfg" then in that cfg, put a bind "KP_END" "(for me it was)vstr ua_animator"
ex-28
Posts: 49
Joined: Sat Oct 22, 2005 1:58 am

Post by ex-28 »

on the clwn gun it was this
bind "PGup" "set ua_fancyRails 'vstr ua_clownGun'; vstr ua_fancyRails" //Fancy Rail On
bind "PGDN" "set ua_fancyRails 'vstr ua_clownOff'; vstr ua_fancyRails" //Fancy Rail Off

i tried binding it as u mentioned , been reading and fiddling for 4 days nto sure wtf i a missing. y i took a chance to ask agian on here.,.
ex-28
Posts: 49
Joined: Sat Oct 22, 2005 1:58 am

Post by ex-28 »

NitrousFlare i see it binded to rightarrow to turn it on i belive but dont see an off setting , i was tryin to compare it to the on / off in the clown gun one but no luck,
NitrousFlare
Posts: 81
Joined: Sun Oct 30, 2005 6:32 am

Post by NitrousFlare »

ex-28 wrote:NitrousFlare i see it binded to rightarrow to turn it on i belive but dont see an off setting , i was tryin to compare it to the on / off in the clown gun one but no luck,
the KP_RIGHTARROW is to turn it off, to turn it on, you exec the .cfg
ex-28
Posts: 49
Joined: Sat Oct 22, 2005 1:58 am

Post by ex-28 »

ahh crips ok , i need to bind it to a key for on / off
NitrousFlare
Posts: 81
Joined: Sun Oct 30, 2005 6:32 am

Post by NitrousFlare »

to turn it ON, bind something to EXEC the CFG that CONTAINS the NAME CONFIG

to turn it off, BIND "KEY" to the LAST VSTR command in the SCCROPT, for example, MINE would be VSTR UA_RAINBOWANIMATOR

(caps is for emphasis, not for being mean)
ex-28
Posts: 49
Joined: Sat Oct 22, 2005 1:58 am

Post by ex-28 »

bla stupid thing i can get it to go on with my bind key but not off , thing can stay on all the time , spent to many hrs on this tx for the info tho all maybe next one i'll figure out
ex-28
Posts: 49
Joined: Sat Oct 22, 2005 1:58 am

Post by ex-28 »

here is what i have for the name animator

bind "HOME" "ui_clan '^2*^c909BFG^2*' ; set ua_nameAnimator 'vstr ua_rainbowAnimator'; vstr ua_nameAnimator"
set ua_rainbowAnimator "ui_name '^c910**Extreme**^0'; wait 10; ui_name '^c950**Extreme**^0'; wait 10; ui_name '^c990**Extreme**^0'; wait 10; ui_name '^c091**Extreme**^0'; wait 10; ui_name

'^c095**Extreme**^0'; wait 10; ui_name '^c099Extreme^0'; wait 10; ui_name '^c109Extreme^0'; wait 10; ui_name '^c509Extreme^0'; wait 10; ui_name '^c909Extreme^0'; wait 10; vstr ua_nameAnimator"

i hit home it comes on , i need to set it to turn off when i hit "END"

i also already have this in my autoexec as well so i dotn need the clan name in the script

seta ui_clan "^2*^c909BFG^2*"

what the heck am i missing to to get this to go on when i hit "home" and off when i hit "end"

i have binded the keys its writing to the cfg it works as it is to go on , but not off. wtf am i missing ?
NitrousFlare
Posts: 81
Joined: Sun Oct 30, 2005 6:32 am

Post by NitrousFlare »

it should turn off if you bind "end" "vstr ua_nameAnimator" but i dno
ex-28
Posts: 49
Joined: Sat Oct 22, 2005 1:58 am

Post by ex-28 »

i just dont get what i am doing wrong i think its cause i have the bind clanname in there thats messin me up but who knows..
NitrousFlare
Posts: 81
Joined: Sun Oct 30, 2005 6:32 am

Post by NitrousFlare »

someone must...
Locked