Log directory is not writable - please CHMOD ../../e107_plugins/log/logs to 777
Forums
Moderators: EasyRider, Nail, ailmanki, Warning!Mika
Author Post
sassu50
Mon Jan 03 2011, 01:12PM

Registered Member #96897
Joined: Sun Jan 16 2005, 12:00AM
Posts: 28
Hello I downloaded 2 of Yvo's scripts :

// Weapon script

// Binded keys
bind mouse1 "+vstr sprintOn sprintOff"

// Script
set sprintOn "+attack; +sprint"
set sprintOff "-attack; -attack; -sprint; -sprint"
echo ^0> ^7Yvo^0'^7s Shoot and sprint script loaded ^0!

////////////////////
// fov-fixed shooting
////////////////////

// m_pitch fixed shooting script

// Binded key
bind mouse1 "+vstr fovOn fovOff"

// Settings
// far range fov
set fov1 "set cg_fov 90"
// normal range fov
set fov2 "set cg_fov 115"

// Script
set fovOn "+attack; vstr fov1"
set fovOff "-attack; -attack; vstr fov2"

but the 1st one doesn't work .. but when i change positions the other one doesn't work ? any ideas ?

http://et.splatterladder.com/?mod=playerinfo&idx=13404459
http://etsigs.splatterladder.com/permit-color-avatar/13404459.jpg

[edit by Z - sig pic too big]
Back to top
MacGyver!
Mon Jan 03 2011, 04:29PM
Registered Member #188199
Joined: Tue May 17 2005, 12:00AM
Posts: 8
Because once the config gets loaded the 2nd script that gets loaded last and it overwrites the 1st one. That is why only one works.
You might try merging the two scripts together to see what will happen, but I'm not sure if it will work.

You can try this:
bind mouse1 "+vstr attackOn attackOff"
set attackOn "+attack; +sprint; vstr fov1"
set attackOff "-attack; -attack; -sprint; -sprint; vstr fov2"
set fov1 "set cg_fov 90"
set fov2 "set cg_fov 115"

Not sure if it will work, since I'm writing this from memory and haven't used a scripts since 2007.
Back to top
sassu50
Tue Jan 04 2011, 11:22PM

Registered Member #96897
Joined: Sun Jan 16 2005, 12:00AM
Posts: 28
Oh how cool is that - it works !!! thanks a lot dude

http://et.splatterladder.com/?mod=playerinfo&idx=13404459
http://etsigs.splatterladder.com/permit-color-avatar/13404459.jpg

[edit by Z - sig pic too big]
Back to top
MacGyver!
Wed Jan 05 2011, 04:44PM
Registered Member #188199
Joined: Tue May 17 2005, 12:00AM
Posts: 8
No problem
Back to top
XplosiveMatt
Wed Jun 22 2011, 12:01AM
Registered Member #135055
Joined: Sat Mar 05 2005, 12:00AM
Posts: 3
What about the Sprint n shoot script + the m_pitch fixed shooting script?

// Weapon script

// Binded keys
bind mouse1 "+vstr sprintOn sprintOff"

// Script
set sprintOn "+attack; +sprint"
set sprintOff "-attack; -attack; -sprint; -sprint"
echo ^0> ^7Yvo^0'^7s Shoot and sprint script loaded ^0!



// m_pitch fixed shooting script

// Binded key
bind mouse1 "+vstr mplow mphigh"

// Settings
// low sens m_pitch
set mpitch1 "m_pitch 0.0151"
// normal sens m_pitch
set mpitch2 "m_pitch 0.180"

// Script
set mplow "+attack; vstr mpitch1"
set mphigh "-attack; -attack; vstr mpitch2"
Back to top
Here4Scripts
Thu Jun 23 2011, 05:58AM
Registered Member #450915
Joined: Tue Aug 11 2009, 07:31AM
Posts: 41
bind mouse1 "+vstr attackOn attackOff"
set attackOn "+attack; +sprint; m_pitch 0.0151"
set attackOff "-attack; -attack; -sprint; -sprint; m_pitch 0.180"

For all 3 together:

bind mouse1 "+vstr attackOn attackOff"
set attackOn "+attack; +sprint; m_pitch 0.0151; cg_fov 90"
set attackOff "-attack; -attack; -sprint; -sprint; m_pitch 0.180; cg_fov 115"



[ Edited Thu Jun 23 2011, 05:59AM ]

Need some script help? Just send me a PM.
Back to top
XplosiveMatt
Thu Jun 23 2011, 09:53AM
Registered Member #135055
Joined: Sat Mar 05 2005, 12:00AM
Posts: 3
Nice. Thank you
Back to top
 

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System
This site is powered by e107, which is released under the terms of the GNU GPL License. Any trademarks on this site belong to their respective owners. © 2009 enemy-territory.com, quake-wars.net