Blockland Welcome, Guest. Please login or register.
Did you miss your activation email?
January 19, 2018, 05:20:08 AM

Home Help Login Register
  Show Posts
Pages: 1 2 3 [4] 5 6 7 8 9 ... 601
46  Off Topic / Off Topic / Re: [NEWS] papa johns steps down because of political correctness. on: December 22, 2017, 03:44:30 AM
epic
47  Off Topic / Off Topic / Re: [NEWS] papa johns steps down because of political correctness. on: December 22, 2017, 03:44:04 AM
this nation is getting killed cause some rich fuck retires?
48  Blockland Forums / General Discussion / Re: unpopular blockland opinions on: December 22, 2017, 02:43:07 AM
default colorset is best colorset
49  Blockland Forums / Modification Help / Re: [SKETCHUP] ignore the above thread; use sketchup on: December 21, 2017, 11:28:22 PM
um are you trolling or serious can't even tell
50  Blockland Files / Add-Ons / Re: [Player] Invincible Quake-Like Player on: December 21, 2017, 11:23:05 PM
if player doesn't exist then the suicide function will spam console
do an isObject check
51  Blockland Forums / Modification Help / Re: resetting a projectile's velocity to something else in mid-air after a delay on: December 21, 2017, 03:56:08 PM
thats DUMB
I BLAME TORQUE
TORQUE SUCKS
actually this is pretty viable especially when you take into account networking, instead of having to send over velocity, position for every tick a bullet travels you only need to tell the client where the bullet is created and its velocity, infact if you were writing a game in torque you could rewrite the engine to do this if you actually needed it for a game mechanic, unfortunately we are not on the engine level
52  Blockland Forums / Modification Help / Re: Bullets not consistently spawning at muzzle point on: December 21, 2017, 03:52:52 PM
muzzle points cant be animated, itíll just be at the root position assuming no keyframes after the first exist. unsure why it is firing from mounpoint though - maybe package the fire function and check if it really is being created at the mountpoint or if it just looks like it is
bullets fire from the model origin (0,0,0) if no muzzle point is present
The mount point is most likely at the origin

You can't animate the muzzlePoint or it won't recognize it as being there anymore or something

therefore you should just keep the muzzlePoint at the area of where the muzzle is at resting position even if you have a firing position that moves the muzzle


if you have some sort of super crazy weapon that moves its muzzlePoint like left to right or something you would have to resort to using math to find where the muzzle point would be corresponding to the where you want the bullet created
53  Blockland Forums / Modification Help / Re: Proper kill message for delayed damage on: December 21, 2017, 01:56:03 AM
upon closer inspection this is entirely because of hole bots and blocklands shitty damage code the kill message will only work on the projectile created by the bot, create a temporary script object but make sure its deleted after and obviously don't do that for if its a normal player

54  Blockland Forums / Modification Help / Re: Proper kill message for delayed damage on: December 19, 2017, 01:57:20 PM
check if its a bot with
if(%obj.getClassName() $= "AiPlayer")

and then instead of %obj.client do %obj.sourceObject
if the bot somehow gets deleted before 2 seconds is up thats not really your fault since if a bot gets completely deleted before one of its projectiles hits a player it won't register properly even under normal circumstances (it will work if the bots corpse still exists)
55  Blockland Forums / Modification Help / Re: Proper kill message for delayed damage on: December 19, 2017, 09:59:15 AM
To fix this, you should create a temporary scriptobject, and assign it the following parameters from the projectile:
sourceObject
sourceClient
dataBlock (capitalization on this one may matter, assign %obj.getDatablock() to it)

Have it be created before running the schedule, and deleted on a schedule as well.
um

first off projectiles typically use the variable 'client' as the creating client
and instead of creating a temporary script object you can just source the damage from the client which works far better than creating a temporary script object everytime a projectile damages someone
Code:
%col.schedule(2000,damage,%obj.client,%col.getPosition(),100,%this.directDamageType);
56  Blockland Forums / Help / Re: Left Control wont bind on: December 18, 2017, 01:34:47 PM
sounds like you have some crappy client addon messing it up then
does this happen on a clean install?
57  Blockland Forums / Modification Help / Re: Image slot 1 items failing to animate on: December 18, 2017, 04:18:02 AM
this is actually caused by a glitch where blockland decides that it doesnt need to update the image states on the client side I'm still not 100% sure what causes it and it plagues me all the time, could you show your image states and code and I can give you some ideas on how to make it update
58  Blockland Forums / Modification Help / Re: General Coding Questions (Floating Text, Getting Brick Position, Ect.) on: December 17, 2017, 06:15:42 AM
zones

trigger datablock
Code:
datablock TriggerData(Bounds_Trigger)
{
   tickPeriodMS = 50;
};
tickPeriodMS specifies how often it checks for updates on player positions

code for entering and leaving triggers
Code:
function Bounds_Trigger::onEnterTrigger(%db,%trig,%pl)
{
parent::onEnterTrigger(%db,%trig,%pl);
}

function Bounds_Trigger::onLeaveTrigger(%db,%trig,%pl)
{
parent::onLeaveTrigger(%db,%trig,%pl);
}

every tick of the trigger any player inside will call this function
Code:
function Bounds_Trigger::onTickTrigger(%db,%trig,%pl)
{
parent::onTickTrigger(%db,%trig,%pl);
}


code to create a trigger the same position and dimensions of a brick
Code:
function fxDtsBrick::createTrigger(%this,%data,%polyhedron)
{
if(%polyhedron $= "")
%polyhedron = "0 0 0 1 0 0 0 -1 0 0 0 1";

if(isObject(%this.trigger))
%this.trigger.delete();

%t = new Trigger()
{
datablock = %data;
polyhedron = %polyhedron;
};
missionCleanup.add(%t);

%boxMax = getWords(%this.getWorldBox(), 3, 5);
%boxMin = getWords(%this.getWorldBox(), 0, 2);
%boxDiff = vectorSub(%boxMax,%boxMin);
%boxDiff = vectorAdd(%boxDiff,"0 0 0.2");
%t.setScale(%boxDiff);
%posA = %this.getWorldBoxCenter();
%posB = %t.getWorldBoxCenter();
%posDiff = vectorSub(%posA, %posB);
%posDiff = vectorAdd(%posDiff, "0 0 0.1");
%t.setTransform(%posDiff);

%this.trigger = %t;
%t.brick = %this;

return %t;
}
59  Blockland Forums / Help / Re: Left Control wont bind on: December 17, 2017, 05:15:53 AM
go into "blockland/config/client/config.cs"
and add that command on a new line at the end of the file
60  Off Topic / Off Topic / Re: I was suspended for 10 days on: December 17, 2017, 04:59:49 AM
at my school the art teacher used to smoke weed with the seniors before he was eventually caught and fired but like he probably had been doing that for years
edit: lol also in middle school our VP had to take a leave of absence after being arrested for a dui
Pages: 1 2 3 [4] 5 6 7 8 9 ... 601


Login with username, password and session length

Powered by SMF 1.1.20 | SMF © 2013, Simple Machines
Page created in 0.027 seconds with 18 queries.