3GO模拟飞行网|3GO Cyber Air Force

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2237|回复: 2

介绍几个GlovePIE代码的网站(不只是飞模方面的)

[复制链接]
发表于 2008-11-15 11:37:39 | 显示全部楼层 |阅读模式
http://www.wiili.org/forum/

http://www.wiimoteproject.com/

http://nintendo-scene.com/831

Wiitrack方案的原始代码就是源自wiili.org;

其它还包括用wiimote玩FPS游戏的代码、做方向盘玩赛车游戏的代码、做网球拍的代码……等等诸如此类……
还有很多等待发掘啊


先贴一个:
Call of Duty 4
Crysis
script fps config ingame
4 script joystick
devil may cry 4 mode nero and dante

PPJoy.Digital5 = Wiimote1.B //High Profile
PPJoy.Digital0 = wiimote1.A //Leg Action
PPJoy.Digital2 = wiimote1.Home //Head Action
PPJoy.Digital11 = wiimote1.PLUS //Center Camera
PPJoy.Digital8 = wiimote1.one //Map
PPJoy.Digital9 = Wiimote1.two //Pause
PPJoy.Digital1 = Wiimote1.RawForceX >= 60 m per s //Weapon Hand Action (move wiimote at 60m/s)
PPJoy.Digital6 = wiimote.Nunchuk.CButton //Chase Camera
PPJoy.Digital4 = Wiimote1.Nunchuk.ZButton //Target Lock
PPJoy.Analog0 = Wiimote1.Nunchuk.JoyX //Left/Right
PPJoy.Analog1 = Wiimote1.Nunchuk.JoyY //Forward/Backward

*/
//This varible controlls the ammount of force you need to use when moving the
//wiimote or nunchuk, make it lower if you want to use less force when moving the
//wiimote or nunchuk
var.ForceSensitivity=15


//Joystick - Walk/Run
//Movement (You must assign your Nunchuk stick for movement in-game under gamepad options)
PPJoy.Analog2=wiimote.Nunchuk.JoyX
PPJoy.Analog3=wiimote.Nunchuk.JoyY
//endif

var.grabright= (Wiimote.nunchuk.RawAccx > var.ForceSensitivity, Wiimote.nunchuk.RawAccx < -var.ForceSensitivity) and wiimote.b=true

var.grableft = (Wiimote.nunchuk.RawAccx < -var.ForceSensitivity, Wiimote.nunchuk.RawAccx > var.ForceSensitivity) and wiimote.b=true

var.grabback =(Wiimote.nunchuk.RawAccy > var.ForceSensitivity, Wiimote.nunchuk.RawAccy < -var.ForceSensitivity) and wiimote.b=true

// Attack/Select/Armed Hand - BLUE
ppjoy.digital15=(Wiimote.RawAccX > var.ForceSensitivity or Wiimote.RawAccX < -var.ForceSensitivity) or (Wiimote.RawAccy > var.ForceSensitivity or Wiimote.RawAccy < -var.ForceSensitivity)

//Drop/Grab/Tackle
ppjoy.digital3=(Wiimote.nunchuk.RawAccx > var.ForceSensitivity or Wiimote.nunchuk.RawAccx < -var.ForceSensitivity) or (Wiimote.nunchuk.RawAccy > var.ForceSensitivity or Wiimote.nunchuk.RawAccy < -var.ForceSensitivity)

PPJoy.Digital3 = wiimote1.minus //Free Hand Action
endif

PPJoy.Digital16 = wiimote1.up //Hidden Blade
PPJoy.Digital17 = wiimote1.down //Fists
PPJoy.Digital19 = wiimote1.right //Short Blade and Throwing Knives
PPJoy.Digital18 = wiimote1.left //Sword

if wiimote.Nunchuk.CButton //camera = C + motion sensor wiimote
PPJoy.Analog2 = (Wiimote1.Roll - 6)/50
PPJoy.Analog3 = -(Wiimote1.Pitch + 6)/35
else
PPJoy.Analog2 = 0
PPJoy.Analog3 = 0
endif

If PPJoy.Digital1 = True Then
wiimote.rumble = True
Wait 300 ms
wiimote.rumble = False
End If
发表于 2008-11-15 13:46:32 | 显示全部楼层
不错不错,感谢Akar
发表于 2009-1-11 13:58:42 | 显示全部楼层
http://www.wiili.org/forum/
不知道是被禁止了还是TMD挂了.....很久都上不去了......
挂代理也上不去..........靠
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|小黑屋|手机版|3GO模拟飞行网|3GO Cyber Air Force ( 沪ICP备08002287号|沪ICP备14050587号 )

GMT+8, 2024-5-18 09:09

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表