Skip to content

Snakes shoot venom!... also Moved Weapon handing up to Mob from player #745

Merged
merged 4 commits into from Mar 4, 2012

6 participants

@Flet
Collaborator
Flet commented Mar 4, 2012
  • Moved weapon code out of player and into Mob so Mobs can now have weapons.
  • added checkIfInFront() check to see if Player is in front of mob before shooting
  • New BulletPoison with graphics (Thanks @GodleyDemon )
  • Every 20 ticks Snakes will randomly shoot venom 20% of the time if the player is in front of them and near

http://www.youtube.com/watch?v=7USq1O-sma8

Note, venom does not poison... left for future enhancement by someone :)

@Flet
Collaborator
Flet commented Mar 4, 2012

meh, conflicts.

@Flet Flet Merge branch 'develop' of https://github.com/Maescool/Catacomb-Snatch
into snake

Conflicts:
	src/com/mojang/mojam/entity/mob/HostileMob.java
	src/com/mojang/mojam/entity/weapon/IWeapon.java
	src/com/mojang/mojam/entity/weapon/Rifle.java
8f01823
@master-lincoln
Collaborator

nice...
Although the logic might need some improvements. In 0:25 the snake shoots 3 times consecutively. That might be a bit too often imho. But we can change that later...
+1

@Elosanda
Elosanda commented Mar 4, 2012

you gave them weapons, are you crazy?! but i like it +1
i have also a little improvement in mind (shots create small poison pools an the floor which disappear slowly)

@eirthepriest

Is there a range limit?

@xDreamCoding

+1

@Maescool Maescool merged commit 923f599 into Maescool:develop Mar 4, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.