Duck and Cover Forum Index


Use these links, buy stuff from Amazon and help us out, nubs.
Amazon.com | Amazon.ca | Amazon.co.uk | Amazon.de
  Duck and Cover  •  FAQ  •  Search  •  Memberlist  •  Usergroups   •  Register  •  Profile  •  Log in to check your private messages  •  Log in

 Support DAC!
 Just a few more... View next topic
View previous topic
Post new topicReply to topic
Author Message
ogreb
Respected
Respected


Joined: 29 Aug 2005
Posts: 70

PostPosted: Wed Oct 19, 2005 1:57 am Reply with quoteBack to top

How exactely do you change attacks for critters?
Fire bugs..lightning bugs..acid bugs with more potent acid spits.
Is it change text work..?
The only thing( entities) that I have seen that can change it's weapon attacks ( and animations).... is weapons!
Do I make a weapon with a bug sprite?( uniqueother) Will it move?
Do you know how that other guy did it?

Fire bugs! That's so cool!

What's the other....???

Forgot...
View user's profileSend private message
requiem_for_a_starfury
Hero of the Wastes
Hero of the Wastes


Joined: 29 Oct 2002
Posts: 1820

PostPosted: Wed Oct 19, 2005 7:39 am Reply with quoteBack to top

No you don't make a weapon with a bug sprite hammer .

Any non humanoid uses kick or punch attacks for their weapons. Probably the easiest way of doing it is to open up one of the kick weapons like the robot rocket or the cockroach spit and modify it to use a flame attack. You might have to let it uses flamer ammo, if so make sure you make a new ammoflamer entity that's unlootable in the entity editor.

Then the easiest way to do it is to assign it to the seconded item slot in the entity editor, of the critter's equipped items. Just as if you were giving them a rifle.

Just take a look at the behemoth or ubercockroach entities.

There is another way to allocate kick and punch attacks, though this is really for the default unarmed attacks that are available if you haven't got a weapon equipped. If you're planning on making any critter or non-humanoid robot available as a recruit and want to give them new attacks, or if you want to make more unarmed attacks for humanoid recruits this is the way to do it.

Your new kick or punch entities must go in the punch and kick weapon folders for this to work.

In core\tables there is a text file called races. If you open that up an scroll down to (or search for) Unarmed Tables you'll find a list of the punch and kick attacks available. You can add new attacks to the bottom of the lists. Keep the same format, filename (less the .ent) in quotes and followed by a comma then the next number in the sequence.

"robotPunch", // 31
"robotBlades", // 32

Then below each list you'll see the tables assigning each race different unarmed attacks.


kick_table = {
// race entity level unarmed str ag
{ 0, 1, 0, 0, 0, 0}, // BOS
{ 0, 2, 0, 40, 0, 6}, // BOS
}

The first number is the race, the list of races and their corresponding numbers are at the top of the file. Then the entity refers to the list you've just altered so put the number of the new attack you've made. Level is the level that the attack will become available. Unarmed is the required skill level of unarmed combat needed before the attack will become available, likewise strength and agility are the required stat levels needed to access the attacks.

Adding to these tables will make more attacks available and you won't have to keep re-equipping the punch/kick weapons if you've equipped then unequipped another item.
View user's profileSend private messageSend e-mail
Display posts from previous:      
Post new topicReply to topic


Jump to:  



View next topic
View previous topic
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group