I want to implement a cannon

正在查看此主题的用户

Mauromagno Patriota

Sergeant Knight
Hello everyone, I'm mauro de Chile
I'm modifying my Mod Beta Independence of Chile and
I want to implement a cannon, but I have searched extensively on the subject and have not found much .....
Someone would be kind enough to help a little with it?
Some indication can be used, a code or anything that it can help me

I have the  resource, but do not know how  I can make it work.... :neutral:

Thanks in advance
 
mauromagno 说:
but not work for me when I wanted to play,
or work with several people in the game?  :roll:
Did you host it on a dedicated server or via the ingame "host game" button ?
Not all mods work with the "host game" button. or not all features that is.
 
Mauro, implementar un cañón no es algo fácil y espero que tengas experiencia, y ya no hablemos de utilizarlos en multijugador.
El truco está en crear uno o varios scene props dinámicos que se muevan de acuerdo a unos parámetros del servidor.

Aquí te pongo un esquemita:

插入代码块:
<Instancia de Scene prop>
  cliente ->
   · interfaz de manejo a través de triggers (de proximidad, por teclas,... )
   · sistema de partículas

  servidor ->
   · posicionamiento
   · coordinación de eventos
   · muertes y radio de acción
   · física

Como puedes ver la mayoría del código lo ejecuta el servidor para evitar trucos y los clientes solo le mandan a este la información que necesite.
Realmente ellos no hacen nada mas que darle posiciones.

No es nada imposible, pero ten cuidado con las implementaciones que existen, pueden estar mal.
¡Ale, a disfrutar!  :wink:



Mauro, implementing a cannon isn't something easy, so I hope you have experience, even more talking about multiplayer.
The trick is to create one or more dynamic scene props that move according to some server parameters.

Here I put you a schematic thingy:

插入代码块:
<Scene prop instance>
  client ->
   · control triggers interface (proximity, key presses,... )
   · particle systems

  server ->
   · positioning
   · event coordination
   · deaths and damage ranges
   · physics

As you can see the majority of the code is executed on server to avoid cheating, so the clients are only coded for sending the needed info.
Actually they do nothing but giving positions.

Isn't impossible, but be warned with the existing implementations, they may be bad.
Enjoy!  :wink:
 
Gracias amigo,
lo que hice fue copiar los codigos del AoFI, que el creador de ese mod dio permiso para usar su module system (Shredzorz) en un post que hizo
http://forums.taleworlds.com/index.php/topic,152698.msg3668825.html#msg3668825

gracias de todas formas, yo no soy experto en el tema, pero algo entiendo jejej :grin:
Chau

PD. ¿de donde eres?  :grin:
 
look at his profile:

"Location:Spain ← Europe ← Planet Earth ← Milky Way ← Universe"
xD
 
后退
顶部 底部