The Cathedral of Attnam

Iter Vehemens ad Necem (IVAN)
Login
Username
Password


 Valid CSS  Valid HTML 4.01 Strict

Atomic IVAN

The Cathedral of Attnam  >  Programming
Print

View profile
Send message
Find posts Find topics
 
Dec 18, 2008 at 12:37 am #1  !
4zb4's Avatar
4zb4
archangel


Joined: Dec 11, 2008
Occupation: Procrastinating
Location: The Bunker
Interests: Waiting out the internet shitstorm
Posts: 948
Groups:
Atomic IVAN
Hello everyone.
I had a read through of a few old threads, and it seems people wanted an atomic mine/bomb in IVAN.
So...

I made one.

It is currently in Beta testing, as I cannot figure out how to increase IVAN's maximum blast radius for explosions. Can somebody help with that?

Anyways, I have packaged it with IVAN 0.50 as there is rather a lot of script that has been added, and it seemed easier this way. Also there is a zip file with just the script in it.

The details:

*The atomic mine (bomb) is found in New Attnam in the sumo's house (see screenshot 1) Although sometimes does not show up. If this happens, check under the sumo when he moves to eat. If it's not there, start a new game.
*Its explosion has a 15 square diameter, this is the maximum for IVAN.
*It can be wished for
*It uses the atomic bomb picture from the graphics file, so does not look like an ordinary old mine.
*There are only 2 pre-placed in the game. One in New Attnam and the other in the dwarven minefield
*It's made of Iron and Atom Bomb Powder (new material)
*Standing on it will kill you.
*It can't kill Elpuri, but brings his health down to around 390hp (see screenshot 5)
*You can SoCM anything into atom bomb powder, but if it explodes, you're dead.
*Use the first bomb wisely. You need to get at least 16 squares away to be safe from the resulting explosion.
*It acts like a mine, you apply it, run away and anything that steps on it sets it off (and dies).
*Everything to do with the atomic mine was freshy made, nothing else has been touched.

have fun everyone... *evil laugh*
oh and Atomic better not get angry for me using his name XD

UPDATE 0.2
*added the spade of asplosions (edited Turox)
*Added spades, but can't figure out how to get them to work like a pick-axe
*Jacket has been added, but won't act like the backpack full of gunpowder. Might just edit the backpack.
*Ivan now has an AK47 8h)

UPDATE 0.21
*Fixed the jacket. Now "suicide bomb vest". Contains NITRO (new material) about as powerful as the atomic mine. Can be found in the dwarven minefield. Glows brightly.
*NITRO added. Glows bright green and is highly explosive. Can be found in bottles. Drinking it will kill you. Throwing it at someone will kill them. Fireballing it kills just about everyone in the blast radius.
*Kamikazi dwarfs now use suicide bomb jackets instead of gunpowder backpacks. The upside of this is that they glow in the dark. The downside is that if they explode on you, they WILL kill you.
*Still can't figure out how to get the weight right. The atom bomb and bomb vest both have negative values. The closest I ever got was getting the atom bomb to 2000g and then it wouldn't blow up right. I might just leave them as they are. Having 2 bomb vests will overload you.
*Added the TNT mine. These can be found in the dwarven minefield, and can be wished for. Not as powerful as the atomic mine. Looks like a red lump similar to a lump of banana flesh.
*Added material TNT. Not as powerful as the atomic bomb or nitro, but is still powerful enough to kill you. It is possible to survive the explosion.
 
Last edited by 4zb4 : Apr 20, 2009 at 7:06 am. Edited 4 times total



Attached Files
 
View profile
Send messageSend email
Find posts Find topics
 
Dec 18, 2008 at 1:58 am #2  !
capristo's Avatar
capristo
The Imperialist


Joined: Dec 2, 2007
Location: New Attnam
Interests: bananas
Posts: 1224
Groups:
Very nice work. You win most valuable new member award.
 
 
View profile
Send message
Find posts Find topics
 
Dec 18, 2008 at 2:22 am #3  !
4zb4's Avatar
4zb4
archangel


Joined: Dec 11, 2008
Occupation: Procrastinating
Location: The Bunker
Interests: Waiting out the internet shitstorm
Posts: 948
Groups:
ty.

Currently working on a suicide bomber vest, but the script doesn't like me adding new items... the only time it worked, it thought it was a mine and instead of self-destructing, it planted itself.
 
Praise the sun! Jolly co-operation!
 
View profile
Send message
Find posts Find topics
 
Dec 18, 2008 at 10:23 am #4  !
chaostrom's Avatar
chaostrom
Mage Prophet


Joined: Dec 3, 2007
Occupation: Standing between all life and death.
Posts: 2038
Groups:
If Atomic has any objections call it... Blue Phoenix (yes it is oxymoronic, and yes it is a reference to the WW2 Blue Peacock nuclear landmine project).
 
image
 
View profile
Send message
Find posts Find topics
 
Dec 19, 2008 at 12:13 pm #5  !
Fluffy_Bot's Avatar
Fluffy_Bot
Master of the profane arts of linguistic combat


Joined: Jan 27, 2008
Occupation: Boxing Champion
Location: Kamogawa Gym
Interests: Boxing, Pornography
Posts: 328

chaostrom wrote


If Atomic has any objections call it... Blue Phoenix (yes it is oxymoronic, and yes it is a reference to the WW2 Blue Peacock nuclear landmine project).



Give it a Hitler moustache.
 
image
 
View profile
Send message
Find posts Find topics
 
Dec 19, 2008 at 12:48 pm #6  !
chaostrom's Avatar
chaostrom
Mage Prophet


Joined: Dec 3, 2007
Occupation: Standing between all life and death.
Posts: 2038
Groups:
Hahaha, the irony of it (Blue Peacock was a British project XD ).
 
image
 
View profile
Send message
Find posts Find topics
 
Dec 19, 2008 at 10:04 pm #7  !
Fluffy_Bot's Avatar
Fluffy_Bot
Master of the profane arts of linguistic combat


Joined: Jan 27, 2008
Occupation: Boxing Champion
Location: Kamogawa Gym
Interests: Boxing, Pornography
Posts: 328

chaostrom wrote


Hahaha, the irony of it (Blue Peacock was a British project XD ).



That was the plan
 
image
 
View profile
Send message
Find posts Find topics
 
Dec 19, 2008 at 11:20 pm #8  !
Cerumen
wolf


Joined: Mar 21, 2008
Location: Your ears!
Posts: 209
I checked it out, and it's pretty awesome. I wouldn't play it seriously, but it was fun to mess with
 
 
View profile
Send message
Find posts Find topics
 
Dec 19, 2008 at 11:24 pm #9  !
4zb4's Avatar
4zb4
archangel


Joined: Dec 11, 2008
Occupation: Procrastinating
Location: The Bunker
Interests: Waiting out the internet shitstorm
Posts: 948
Groups:
Playing it seriously will get you killed.
Many, MANY times.
 
Praise the sun! Jolly co-operation!
 
View profile
Send message
Find posts Find topics
 
May 12, 2009 at 11:17 am #10  !
4zb4's Avatar
4zb4
archangel


Joined: Dec 11, 2008
Occupation: Procrastinating
Location: The Bunker
Interests: Waiting out the internet shitstorm
Posts: 948
Groups:
PROGRESS!
I decided to continue on my WW2 theme and have added the following:
A shotgun (copied wand of striking with more charges. Can be used for melee)
A bazooka (Wand of fireballs, more charges)
A combat vest (AV 28 )
A taser (thunder hammer)
A sword that (Z)aps lightning
Petrol bombs (no lasting fire though)
G.I. helmet (AV 10)

Other changes:
The Encourager is now racist
Decos's building is now steel with a meteoric steel floor
Petrus has been changed to look like Hitler
 
Last edited by 4zb4 : May 12, 2009 at 11:24 am. Edited 2 times total
Praise the sun! Jolly co-operation!
 
View profile
Send message
Find posts Find topics
 
Jul 20, 2009 at 10:08 pm #11  !
Iankill
giant spider


Joined: Apr 20, 2009
Posts: 22
Groups:
This post will be long and contain code
I believe i might be able to help you make the spade be able to dig like a pickaxe. I was going through the source today at work and I found the code for the pickaxe and by chance the code for the digging action.


truth pickaxe::Apply(character* User)
{
if(IsBroken())
{
ADD_MESSAGE("%s is totally broken.",CHAR_NAME(DEFINITE));
return false;
}

int Dir = game:irectionQuestion(CONST_S("What direction do you want to dig? [press a direction key]", false);

v2 Temp = game::GetMoveVector(Dir);
v2 ToBeDug = User->GetPos() + Temp;
if(Dir == DIR_ERROR || !GetArea()->IsValidPos(ToBeDug))
return false;

lsquare* Square = GetNearLSquare(ToBeDug);
olterrain* Terrain = Square->GetOLTerrain();

if(!Terrain)
{
ADD_MESSAGE("Nothing to dig there!";
return false;
}

if(Square->CanBeDug())
{
if(Terrain->CanBeDestroyed())
if(Terrain->GetMainMaterial()->CanBeDug(GetMainMaterial()))
{
int RoomNumber = Square->GetRoomIndex();

if(!RoomNumber || Square->GetLevel()->GetRoom(RoomNumber)->CheckDestroyTerrain(User))
{
User->SwitchToDig(this, ToBeDug);
User->DexterityAction(5);
return true;
}
else
return false;
}
else
ADD_MESSAGE("%s is too hard to dig with %s.", Square->GetOLTerrain()->CHAR_NAME(DEFINITE), CHAR_NAME(INDEFINITE));
else
ADD_MESSAGE(Terrain->GetDigMessage().CStr());
}

return false;
}
That is the code for applying of the pickaxe to a ground or a wall


ITEM(pickaxe, meleeweapon)
{
public:
virtual truth Apply(character*);
virtual truth IsAppliable(const character*) const;
};

This is the code for the pickaxe and it calls the application of the pickaxe code when you try and dig something. Those are the only two places besides the items.dat file that the pickaxe is found so if you copy and paste that using spade instead of pickaxe it should work because the actual digging action has nothing to do with the pickaxe as things can be dug more than one way i.e kicking or explosives. I hope that helps but it might not. Also it was a pretty fun edit to play
 
 
View profile
Send message
Find posts Find topics
 
Jul 20, 2009 at 10:31 pm #12  !
4zb4's Avatar
4zb4
archangel


Joined: Dec 11, 2008
Occupation: Procrastinating
Location: The Bunker
Interests: Waiting out the internet shitstorm
Posts: 948
Groups:
Thanks for that Iankill. I will implement that when I finally get my head around the confusing-as-hell source code.
These have just been script edits after all.
 
Praise the sun! Jolly co-operation!
 
View profile
Send messageSend email
Find posts Find topics
 
Jul 21, 2009 at 2:15 pm #13  !
capristo's Avatar
capristo
The Imperialist


Joined: Dec 2, 2007
Location: New Attnam
Interests: bananas
Posts: 1224
Groups:
Iankill and 4zb4 you guys rock
 
 
View profile
Send messageSend email
Find posts Find topics
 
Feb 19, 2010 at 3:01 pm #14  !
Dark-Star
giant spider


Joined: Feb 19, 2010
Posts: 13
F is for fire that burns down the whole town, U is for uranium...bomb!

8-}
 
 
 Print


The Cathedral of Attnam  >  Programming  >  Atomic IVAN

Jump to