home home

shots shots

downloads files

forum forum

docs docs

wiki wiki

faq faq

Cube & Cube 2 FORUM


Trying to script a three-level zoom

by Muki on 08/17/2007 05:41, 30 messages, last message: 08/21/2007 06:02, 8345 views, last view: 06/02/2020 01:42

Im trying to script a zoom feature to my MOUSE 3, which clicks through three levels of zoom.

Standard/Zoom 1: fov 120; hudgun 1; crosshairsize 25; sensitivity 3

Zoom 2: hudgun 0; fov 60; crosshairsize 20; sensitivity 2;

Zoom 3: hudgun 0; fov 10; crosshairsize 20; sensitivity 1;

I also want to add a sound each time the button is clicked...

Sorry Im such a noob at this, but hey, the more I learn the better my stuff will get, and maybe Ill start taking scripting up as a hobby ;)

Go to first 20 messagesGo to previous 20 messages    Board Index   

#11: Re: yet another variant

by MeatROme on 08/17/2007 12:56, refers to #10

$fov

reply to this message

#12: ..

by SanHolo on 08/17/2007 15:34

Clicking through zoom-levels? Boy, my zoom only works while I hold down mouse2. And nevertheless, sometimes just letting go of mouse2 is too slow to avoid damage.

I love the speed of sauerbraten. =D

reply to this message

#13: Re: ..

by Muki on 08/17/2007 19:55, refers to #12

Really though, it's more for large maps like Urban-C, SkyCastle, and Thor that I use this script on. It works okay in Face-Capture as well...

I wish the rifle had more range though.

reply to this message

#14: ..

by makkE on 08/17/2007 19:58

The rifleīs range is infinite.

reply to this message

#15: Re: ..

by SheeEttin on 08/17/2007 23:32, refers to #14

Isn't everything's? (Well, edge of map aside...)

reply to this message

#16: ..

by Muki Hyena on 08/18/2007 08:46

Try shooting someone in the back spawn of Face Classic from the top of the opposite tower... it won't hit. The rifle doesn't have infinite range.

reply to this message

#17: Re: ..

by demosthenes on 08/18/2007 09:20, refers to #16

All the ranges are limited. I've tested it and had rockets explode just far enough from my face to keep from taking damage.

It's pretty silly sometimes; rockets explode in mid-air, rifle round hit invisible walls, etc. Makes for some very difficult long-range battles. Awfully hard to kill each other that way.

reply to this message

#18: ..

by makkE on 08/18/2007 09:24

Demosthenes: Thatīs a driver issue you got there.

But yes, I tried, the rifleīs range is limited it seems. Never would have thought.

reply to this message

#19: Re: ..

by noerrorsfound! on 08/18/2007 09:47, refers to #18

This is easily noticeable when trying to snipe people on face-capture. :)

reply to this message

#20: ..

by makkE on 08/18/2007 09:48

I donīt play capture, or oversized maps like village or wcdc for that matter.

reply to this message

#21: Re: ..

by SanHolo on 08/18/2007 11:10, refers to #18

It's only the rifle which has limited range, other projectiles have unlimited range. You won't see the rockets smoke after a while, but it still flies.

reply to this message

#22: Re: ..

by crudscurdler on 08/18/2007 11:41, refers to #21

<quote author=\"SanHolo\">It\'s only the rifle which has limited range, other projectiles have unlimited range. You won\'t see the rockets smoke after a while, but it still flies.</quote>

It would be cool if the bullet from the rifle had a bit of a lob to it, like grenades do, but a lesser extreme.

reply to this message

#23: Re: ..

by SheeEttin on 08/18/2007 16:25, refers to #22

That'd require compensating for the bullet drop. Not something you want to have to deal with in a game as fast-paced as Sauerbraten.
While it's less realistic, having no bullet drop makes it much easier to snipe, or even just shoot accurately.

reply to this message

#24: Re: ..

by Passa on 08/19/2007 00:06, refers to #20

"I donīt play capture, or oversized maps like village or wcdc for that matter."

BLASPHEMY!

reply to this message

#25: ..

by makkE on 08/19/2007 02:46

I worship other gods.

reply to this message

#26: Re: ..

by crudscurdler on 08/19/2007 09:42, refers to #23

SheeEttin,

they could always add a second rifle :p

one that requires compensation for bullet drop.

reply to this message

#27: Re: ..

by demosthenes on 08/19/2007 17:32, refers to #18

Well, I meant other people's rockets, but perhaps I am misremembering. I'll have to run another test or two.

reply to this message

#28: Re: ..

by SheeEttin on 08/20/2007 17:17, refers to #27

Probably. There is a graphics driver bug in which rockets would explode as soon as they were fired, but the way you described it, someone was firing rockets at you and they exploded before they hit you.

reply to this message

#29: Re: ..

by demosthenes on 08/21/2007 05:54, refers to #28

Wow, I just cannot state clearly what I meant.

I know for a fact that my drivers are up to date and work propery. My rockets behave as they should.

I think I remember playing a round with my sister on a large map and observing her rockets (fired at extreme range) exploding before they reached me, in mid-air. I may have been mistaken about that, but I know for a fact that I've watched her try to machine-gun me and try the rifle on the same map, and those two *did* meet a glass wall several feet from my face, and the reverse was also true: I couldn't hit her. We both were standing still.

reply to this message

#30: ..

by Acord on 08/21/2007 06:02

That's due to the shorten function, which cuts off a gun's distance at 1024 units. It's not hard to get into the code and change it.

reply to this message

Go to first 20 messagesGo to previous 20 messages    Board Index   


Unvalidated accounts can only reply to the 'Permanent Threads' section!


content by Aardappel & eihrul © 2001-2020
website by SleepwalkR © 2001-2020
33642731 visitors requested 48474736 pages
page created in 0.007 seconds using 10 queries
hosted by Boost Digital