Cyborg11
19.05.2010, 22:06
Wer die News (http://armed-assault.de/news/moep-moep-hupen-im-mp.html) gelesen hat, weiß was jetzt wieder funktioniert.
Der Titel sollte es eigentlich auch nochmal verraten. :naughty:
How does it work?
The script or addon adds a 'MouseButtonDown' Display Eventhandler to the player.
The handler script changes a global variable 'CYBP_horn' to an array like [vehiclename, soundname] if you pressed the left mouse button and are in a vehicle as a driver.
After the variable has been changed a PublicVariableEventhandler will be executed on all clients. This PVEH only executes the 'say' command with the sound name which was broadcasted over the network.
This means that all clients need the addon. If someone don't have the addon you can't hear his horn and he can't hear the horn of other players.
So I decided to include the script version too.
The addon will exit if the script version is running.
Readme: http://cyborg11.cy.funpic.de/ArmA2/Downloads/Readme%20-%20CYBP_horn.pdf
Signed: Yes - with CYBP.bikey
Download:
Armed-Assault.de (http://armed-assault.de/downloads/cybp_horn.html#download)
Funpic.de (http://cyborg11.cy.funpic.de/ArmA2/Downloads/Horn%20v1.0.rar)
BI Forum Thread: Broadcast the horn in MP! - Bohemia Interactive Forums (http://forums.bistudio.com/showthread.php?p=1631419)
Übrigens baut Xeno das Addon in ACE mit ein. Ist also im nächsten ACE Update für ACE User nicht mehr nötig. :)
Der Titel sollte es eigentlich auch nochmal verraten. :naughty:
How does it work?
The script or addon adds a 'MouseButtonDown' Display Eventhandler to the player.
The handler script changes a global variable 'CYBP_horn' to an array like [vehiclename, soundname] if you pressed the left mouse button and are in a vehicle as a driver.
After the variable has been changed a PublicVariableEventhandler will be executed on all clients. This PVEH only executes the 'say' command with the sound name which was broadcasted over the network.
This means that all clients need the addon. If someone don't have the addon you can't hear his horn and he can't hear the horn of other players.
So I decided to include the script version too.
The addon will exit if the script version is running.
Readme: http://cyborg11.cy.funpic.de/ArmA2/Downloads/Readme%20-%20CYBP_horn.pdf
Signed: Yes - with CYBP.bikey
Download:
Armed-Assault.de (http://armed-assault.de/downloads/cybp_horn.html#download)
Funpic.de (http://cyborg11.cy.funpic.de/ArmA2/Downloads/Horn%20v1.0.rar)
BI Forum Thread: Broadcast the horn in MP! - Bohemia Interactive Forums (http://forums.bistudio.com/showthread.php?p=1631419)
Übrigens baut Xeno das Addon in ACE mit ein. Ist also im nächsten ACE Update für ACE User nicht mehr nötig. :)