eloipuertas / ES2013Dijous

Videojoc del Grup de Dijous d'Enginyeria del Software del Grau en Enginyeria Informàtica de la Universitat de Barcelona
http://eloipuertas.github.io/ES2013Dijous/
Other
6 stars 0 forks source link

Add to npcs the capability of to pick objects #433

Closed GuillermoBlasco closed 10 years ago

GuillermoBlasco commented 10 years ago

Add the capability and, more important, the decision of to pick objects:

Estimate hours : 1

Scripts: AgentNpc.cs

Method: notAPickUpObject(GameObject o)

Called at: raycastFront(int dist) line:587

notAPickUpObject() returns true if the object is not a weapon or a power up, and return false if it is

Test:

Check if NPC pass through those objects instead of stop in front of them or jump them

qfornaguera commented 10 years ago

This issue require commitment with @armi7 in weapon case

GuillermoBlasco commented 10 years ago

Tested. Well done!