CONNEXION
  • RetourJeux
    • Sorties
    • Hit Parade
    • Les + populaires
    • Les + attendus
    • Soluces
    • Tous les Jeux
    • Gaming
  • RetourActu Gaming
    • News
    • Astuces
    • Tests
    • Previews
    • Toute l'actu gaming
  • RetourBons plans
    • Bons plans
    • Bons plans Smartphone
    • Bons plans Hardware
    • Bons plans Image et Son
    • Bons plans Amazon
    • Bons plans Cdiscount
    • Bons plans Decathlon
    • Bons plans Fnac
    • Tous les Bons plans
  • RetourJVTech
    • Actus High-Tech
    • Intelligence Artificielle
    • Smartphones
    • Mobilité urbaine
    • Hardware
    • Image et son
    • Tutoriels
    • Tests produits High-Tech
    • Guides d'achat High-Tech
    • JVTech
  • RetourCulture
    • Actus Culture
    • Culture
  • RetourVidéos
    • A la une
    • Gaming Live
    • Vidéos Tests
    • Vidéos Previews
    • Gameplay
    • Trailers
    • Chroniques
    • Replay Web TV
    • Toutes les vidéos
  • RetourForums
    • Hardware PC
    • PS5
    • Switch 2
    • Xbox Series
    • Switch
    • Pokemon pocket
    • FC 25 Ultimate Team
    • League of Legends
    • Tous les Forums
  • PC
  • PS5
  • Xbox Series
  • Switch 2
  • PS4
  • One
  • Switch
  • iOS
  • Android
  • MMO
  • RPG
  • FPS
En ce moment Genshin Impact Valhalla Breath of the wild Animal Crossing GTA 5 Red dead 2
Forum
  • Accueil
  • Actus
  • Tests
  • Vidéos
  • Images
  • Soluces
  • Forum
Liste des sujets

vehicule [script]

_forzainter_
_forzainter_
Niveau 8
12 mai 2008 à 18:26:19

si quelqu un pouvait le tester

;Requires Ply's Mod V1.07+

;Artificial Intelligence Script

;Header

desc = HumVee Drive Script (Vehikleh!!!!)

;Triggers

;///// Load up HUD and Humvee camera, set humvee cam offsets for third person perspective \\\\\
;///// Dim variables necessary \\\\\

:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gam
ecore\text\pressentertouse.tga,hudname=driveprompt
,hudhide=1,hudmake=display
:state=0:makecamera=HumveeCam
:state=0:offsetcamy=HumveeCam 150,offsetcamfore=HumveeCam -110

:state=0:dimvar=Temp,dimvar=TempX,dimvar=TempY,dim
var=HAccel,setvar=HAccel 0.5,dimvar=HVel,dimvar=HMaxVel
:state=0:animate=1,state=1

;///// Show Use HUD when player approaches \\\\\

:state=1,plrdistwithin=100:hudshow=driveprompt,hud
fadeout=driveprompt

;///// If player activates SpyBot, then disable plr input using startmenu
;///// and view through the humvee third person camera, also loop motor sound

:state=1,plrdistwithin=100,plrusingaction=1:startm
enu,viewcam=HumveeCam,plrcoloff,loopsound=audioban
k/atmos/motorhum.wav,state=2

;///// Hide The Player HUDs \\\\\

:state=2:hudunshow=PlrLives,hudunshow=PlrLivesNum,
hudunshow=PlrHealth,hudunshow=PlrHealthNum,hudunsh
ow=GunPic,hudunshow=PlrAmmo,hudunshow=PlrArmor,hud
unshow=PlrArmorNum,hudunshow=PlrMoney,hudunshow=Pl
rMoneyNum,state=3

;///// Make sure Camera follows the Humvee \\\\\
:state=3:cameraposx=HumveeCam $EPX,cameraposy=HumveeCam $EPY,cameraposz=HumveeCam $EPZ
:state=3:cameraposx=0 $EPX,cameraposy=0 $EPY,cameraposz=0 $EPZ

;///// Give Humvee acceleration \\\\\
:state=3,plrusingrun=0:setvar=HMaxVel 15
:state=3,plrusingrun=1:setvar=HMaxVel 25
:state=3:setanimspeed=100,setvar=TempX 0
:state=3:setvar=Temp %HMaxVel,mulvar=Temp -1,divvar=Temp 2
:state=3,keypressed=17 1,plrusingrun=1,varless=HVel %HMaxVel:addvar=HVel %HAccel,addvar=HVel %HAccel,setvar=TempX 1
:state=3,keypressed=17 1,plrusingrun=0,varless=HVel %HMaxVel:addvar=HVel %HAccel,setvar=TempX 1
:state=3,keypressed=31 1,plrusingrun=1,vargreater=HVel %Temp:subvar=HVel %HAccel,subvar=Hvel %HAccel,setvar=TempX 1
:state=3,keypressed=31 1,plrusingrun=0,vargreater=HVel %Temp:subvar=HVel %HAccel,setvar=TempX 1

;///// Handle Humvee Velocity and movement \\\\\
:state=3:movefore=%HVel
:state=3,varless=HVel 0:setanimspeed=-100
:state=3:setvar=Temp %HAccel,divvar=Temp 2
:state=3,varequal=TempX 0,vargreater=HVel 0:subvar=HVel %Temp
:state=3,varequal=TempX 0,varless=HVel 0:addvar=HVel %Temp
:state=3,keypressed=57 1,vargreater=HVel 0:subvar=HVel %HAccel
:state=3,keypressed=57 1,varless=HVel 0:addvar=HVel %HAccel

;///// If moving, then start angling Humvee towards direction camera is facing \\\\\
:state=3,varequal=TempX 1:state=10

:state=10:setvar=TempY $CAY_HumveeCam,subvar=TempY $EAY
:state=10,vargreater=TempY 180:state=11
:state=10,varless=TempY -180:state=12

:state=11:setvar=TempX $EAY,addvar=TempX -2,entityangley=%TempX,state=3
:state=12:setvar=TempX $EAY,addvar=TempX 2,entityangley=%TempX,state=3

:state=10:setvar=TempY $CAY_HumveeCam,addvar=TempY -3
:state=10,varless=$EAY %TempY:setvar=TempX $EAY,addvar=TempX 2,entityangley=%TempX
:state=10:setvar=TempY $CAY_HumveeCam,addvar=TempY 3
:state=10,vargreater=$EAY %TempY:setvar=TempX $EAY,addvar=TempX -2,entityangley=%TempX
:state=10:state=3

;///// Restore normal FPS Cam when "G" is pressed \\\\\
;///// Need to restore player control with "stopmenu" and view the normal camera and stop motor sound \\\\\
:state=3,keypressed=34 1:state=4

;///// Make humvee cam look around based on mouse movement \\\\\
:state=3:setvar=TempX $MMY,setvar=TempY $MMX,divvar=TempX 7,divvar=TempY 7,addvar=TempX $CAX_HumveeCam,addvar=TempY $CAY_HumveeCam
:state=3:cameraangx=HumveeCam %TempX,cameraangy=HumveeCam %TempY

;///// Show the Player HUDs again \\\\\

:state=4:hudshow=PlrLives,hudshow=PlrLivesNum,huds
how=PlrHealth,hudshow=PlrHealthNum,hudshow=GunPic,
hudshow=PlrAmmo,hudshow=PlrArmor,hudshow=PlrArmorN
um,hudshow=PlrMoney,hudshow=PlrMoneyNum

;///// Position Player outside of driver door \\\\\
:state=4:cameraposx=HumveeCam $EPX,cameraposy=HumveeCam $EPY,cameraposz=HumveeCam $EPZ
:state=4:setvar=TempY $EAY,subvar=TempY 90
:state=4:cameraangx=HumveeCam 0,cameraangy=HumveeCam %TempY,cameraangz=HumveeCam 0
:state=4:movecam=HumveeCam 70
:state=4:setvar=TempX $CPX_HumveeCam,cameraposx=0 %TempX
:state=4:setvar=TempX $CPY_HumveeCam,addvar=TempX 100,cameraposy=0 %TempX
:state=4:setvar=TempX $CPZ_HumveeCam,cameraposz=0 %TempX
:state=4:addvar=TempY 90,cameraangy=HumveeCam %TempY
:state=4:cameraangy=0 %TempY

:state=4:stopmenu,viewcam=0,plrcolon,stopsound,sta
te=1

;End of Script

_forzainter_
_forzainter_
Niveau 8
12 mai 2008 à 18:35:38

;Requires Ply's Mod V1.07+

;Artificial Intelligence Script

;Header

desc = Spy Bot Control Script (BindCamToEntity Test)

;Triggers

;///// Load up HUD and SpyBot camera, Bind the camera to the SpyBot entity \\
;///// Dim variables necessary \\

:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gam
ecoretextpressentertouse.tga,hudname=usebotprompt,
hudhide=1,hudmake=display

:state=0:makecamera=SpyBotCam,bindcamtoentity=SpyB
otCam,offsetcamy=SpyBotCam 75,offsetcamfore=SpyBotCam -55
:state=0:dimvar=TempX,dimvar=TempY
:state=0:animate=1,state=1

;///// Show Use HUD when player approaches \\

:state=1,plrdistwithin=100:hudshow=usebotprompt,hu
dfadeout=usebotprompt
;///// If player activates SpyBot, then disable plr input through startmenu
;///// hide the spy bot, and view through the spybot camera

:state=1,plrdistwithin=100,plrusingaction=1:startm
enu,viewcam=SpyBotCam,state=2

;///// Hide The Player HUDs \\

:state=2:hudunshow=PlrLives,hudunshow=PlrLivesNum,
hudunshow=PlrHealth,hudunshow=PlrHealthNum,hudunsh
ow=GunPic,hudunshow=PlrAmmo,hudunshow=PlrArmor,hud
unshow=PlrArmorNum,hudunshow=PlrMoney,hudunshow=Pl
rMoneyNum,state=3

;///// Make spy bot move forward, backward and strafe \\
:state=3:setanimspeed=100
:state=3,keypressed=17 1,plrusingrun=1:movefore=5,animate=5
:state=3,keypressed=17 1,plrusingrun=0:movefore=3,animate=2
:state=3,keypressed=31
1,plrusingrun=1:movefore=-5,animate=5,setanimspeed
=-100
:state=3,keypressed=31
1,plrusingrun=0:movefore=-3,animate=2,setanimspeed
=-100
:state=3,keypressed=30 1:setvar=TempY $EAY,addvar=TempY -90,entityangley=%TempY,movefore=4,addvar=TempY 90,entityangley=%TempY,animate=3
:state=3,keypressed=32 1:setvar=TempY $EAY,addvar=TempY 90,entityangley=%TempY,movefore=4,addvar=TempY -90,entityangley=%TempY,animate=4
;///// Restore normal FPS Cam when "G" is pressed \\
;///// Need to restore player control with "stopmenu" and view the normal camera \\
:state=3,keypressed=34 1:stopmenu,viewcam=0,state=4

;///// Make spy bot cam look around based on mouse movement \\
:state=3:setvar=TempX $MMY,setvar=TempY $MMX,divvar=TempX 7,divvar=TempY 7,addvar=TempX $EAX,addvar=TempY $EAY
:state=3:entityanglex=%TempX,entityangley=%TempY

;///// Show the Player HUDs again \\

:state=4:hudshow=PlrLives,hudshow=PlrLivesNum,huds
how=PlrHealth,hudshow=PlrHealthNum,hudshow=GunPic,
hudshow=PlrAmmo,hudshow=PlrArmor,hudshow=PlrArmorN
um,hudshow=PlrMoney,hudshow=PlrMoneyNum
:state=4:state=1

;End of Script

le script permettant de controler un perso entite

AngelWINTER
AngelWINTER
Niveau 5
12 mai 2008 à 19:23:30

J'ai pas encore testé, mais ça requière le mod: Ply's Mod V1.07+ et j'ai pas ...

AngelWINTER
AngelWINTER
Niveau 5
12 mai 2008 à 19:44:39

Les script sont mal copiés, il faut rajouter des slash et des sauts de lignes à enlever ...
... affaire à suivre.

-Night_Raven-
-Night_Raven-
Niveau 6
12 mai 2008 à 19:46:24

" ;Requires Ply's Mod V1.07+ "

Donc il faut patienter...

AngelWINTER
AngelWINTER
Niveau 5
12 mai 2008 à 19:50:11

Bon après rectification du script;
ça marche, sauf que le gars se barre en courant quand j'appuis sur "entrée" ... ??????

-Night_Raven-
-Night_Raven-
Niveau 6
12 mai 2008 à 19:57:59

Bah alors attend le Plys mod ^^

AngelWINTER
AngelWINTER
Niveau 5
12 mai 2008 à 20:04:06

Rester sur mes l'oriers c'est pas truc !! désolé.

-Night_Raven-
-Night_Raven-
Niveau 6
14 mai 2008 à 17:23:38

Oui moi non plus j'aime pas trop mais la ca doit etre galère pour pondre un script fonctionnel du genre..

En tout cas je n'ais plus qu'une chose a te dire : bonne chance!

La vidéo du moment