Nick_Kick_Butt
Terrarian
I created a spear but when i use it it for some reason shows another spear of the same sprite that doesnt move in front of me
What way is your projectile oriented? It should be facing diagonally up.How come when i use my sword i created it shoots sharks that face the wrong way they are looking upwards when going sideways when its supposed to be looking foward at all times
Help plz
heres some code if u need it
using System;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace NicksMod.Projectiles
{
public class SharkSwordProjectile : ModProjectile
{
public override void SetDefaults()
{
projectile.name = "Killer Shark"; //projectile name
projectile.width = 55; //projectile width
projectile.height = 55; //projectile height
projectile.friendly = true; //make that the projectile will not damage you
projectile.melee = true; //
projectile.tileCollide = false; //make that the projectile will be destroed if it hits the terrain
projectile.penetrate = -1; //how many npc will penetrate
projectile.timeLeft = 200; //how many time this projectile has before disepire
projectile.light = 0.0f; // projectile light
projectile.extraUpdates = 0;
projectile.ignoreWater = true;
}
public override void AI() //this make that the projectile will face the corect way
{ // |
projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X) + 1.57f;
}
}
}
That is odd, you should zip up the source and PM it to me so we can figure out why this is happening.I'm writing a mod with a number of custom items in it. Currently I'm testing multiplayer by running a server on my Windows computer. I found that I can store and retrieve from chests just fine from Windows but when I connect to the server from my Mac the items stored in the chest show up as the wrong item/class, changing to one of the other custom items that I've created.
Your overreacting
[doublepost=1481839170,1481839029][/doublepost]
No there not broken and guys just clear mod folder fully if your having errors
can anyone please tell me what is going on with tmodloader? it wont accept the "useSound"-statement anymore. its been a long while since i was last time on tmodloader so i could have just over seen something
hello, if you guys see this comment, is there something wrong with my tmodloader install? or is this normal, when i try to install a mod with the mod browser it says something like cant download heavy load, i was curious if something was wrong or not
oh ok had looked some of these pages but not allJeckel makes reference to this (which I have forgotten to quote, but is on page 733) being one of the primary changes between updates.
private int value = 0;
public override void ModifyHitNPC(Player player, NPC target, ref int damage, ref float knockBack, ref bool crit)
{
if (value == 1) damage= (int)(damage*1f);
if (value == 2) damage = (int)(damage * 2.5f);
if (value == 3) value = 0;
value++;
base.ModifyHitNPC(player, target, ref damage, ref knockBack, ref crit);
}
public override void OnHitNPC(Player player, NPC target, int damage, float knockBack, bool crit)
{
int spike = (int)Math.Floor((double)(damage / 10));
player.Hurt(spike, target.direction);
base.OnHitNPC(player, target, damage, knockBack, crit);
}
Does your install folder have tModLoaderServer.exe? maybe you deleted it.Hi, I'm trying to play some mods in multiplayer with a friend and whenever I try to host the world we get this error.
View attachment 151941
The error occurs just after I set the password. This has never occurred for us on previous iterations of tmodloader. Could you please provide some insight as to what the cause of this error is?
There is projectile.spriteDirection, which is used to flip sprites if needed: https://github.com/bluemagic123/tModLoader/search?utf8=✓&q=spritedirectionpublic override void AI() //this make that the projectile will face the corect way
{ // |
projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X) + 1.57f;
}
}