Weapon type action for custom death models

Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Weapon type action for custom death models
PostPosted: Tue Jul 19, 2011 5:01 pm 
User avatar
Obliterated

Current Scorched3D Rank: Unranked



Joined: Mon Jun 22, 2009 6:26 pm
Posts: 1591
<accessoryaction type="WeaponTypeAction">
<armslevel>int</armslevel>
<none type="Weapon..."> (can be any weapon accessory)
</none>
<tanktype1 type="Weapon...">
</tanktype1>
...


I cant think right now, but I had an idea sometime earlier this morning when I woke up. I was trying to figure out a way to leave a unique scorched and destroyed tank model in place for each players tank. It included making each tank its own tank type.. tho i dont rember now what I was going to do with it from there?

WeaponAddTarget based off of tank type of dying player? But it wouldnt place based off dead player right?

Is any of this making sense?
Perhaps I should just have a charred wreck left instead, randomly selected from 2-3 different models.

Armor
Image

Top
 Profile  
 
 Post subject: Re: Weapon type action for custom death models
PostPosted: Thu Jul 21, 2011 9:04 am 
User avatar
Obliterated

Current Scorched3D Rank: Unranked



Joined: Mon Jun 22, 2009 6:26 pm
Posts: 1591
Ok so im going with random model drops of debris.. now to make the models. Its sad when I have a harder time destroying models than making them the way their meant to be in top shape.

Armor
Image

Top
 Profile  
 
 Post subject: Re: Weapon type action for custom death models
PostPosted: Fri Jul 22, 2011 5:33 am 
User avatar
Obliterated

Current Scorched3D Rank: Unranked



Joined: Wed Jun 14, 2006 11:18 pm
Posts: 1481
Location: United Kingdom
i always liked the matchsticks in apoc.

i havent tested, but does name give you what you need, or is that something different?

http://scorched3d.co.uk/wiki/index.php/LUA_s3d_library wrote:
s3d.get_tank(integer playerid)

Returns a table containing details for the given tank/player. This table is defined as follows:

{
name, -- a string name of the tank
id, -- an integer playerid of the tank
position, -- a table containing x,y,z indicating the position of this tank
alive, -- a boolean representing the current state of the tank
team -- an integer representing the team of the tank,
money -- an integer representing the money of the tank,
score -- an integer representing the score of the tank,
rank -- an integer representing the rank of the tank,
skill -- an integer representing the skill of the tank,
lives -- an integer representing the remaining lives of the tank
}

it could be fun to add flags or something for former (dead) players. say you included an alphabet as a set of textures. code something like: for each letter, case: 'a' fireweapon a position+=letterwidth, case: 'b' fireweapon b position+=letterwidth etc etc. 26 letters would be doable, unicode probably wouldnt. (maybe you could set up some kind of unicode font drawing lua lib. that'd be fun : )


Top
 Profile  
 
 Post subject: Re: Weapon type action for custom death models
PostPosted: Fri Jul 22, 2011 5:54 am 
User avatar
Obliterated

Current Scorched3D Rank: Unranked



Joined: Mon Jun 22, 2009 6:26 pm
Posts: 1591
match sticks? I have considered flags..

Armor
Image

Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group